Fix SVACE defect (INTEGER_OVERFLOW) 33/283233/1 accepted/tizen_8.0_unified accepted/tizen_unified accepted/tizen/8.0/unified/20231005.092852 accepted/tizen/unified/20221102.020524 tizen_8.0_m2_release
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 20 Oct 2022 12:50:48 +0000 (21:50 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 20 Oct 2022 12:50:48 +0000 (21:50 +0900)
[Version] 0.0.24
[Issue Type] Svace

Change-Id: I099f78f936149a27f1d6da219e575fb32b1d7f44

packaging/capi-media-sound-pool.spec
test/proxy/src/proxy.c
test/sound_pool_test.c

index 0155ca3..6b30241 100644 (file)
@@ -1,5 +1,5 @@
 Name:       capi-media-sound-pool
-Version:    0.0.23
+Version:    0.0.24
 Summary:    Tizen Sound Pool module
 Release:    0
 Group:      Multimedia/Framework
index 8e12559..7188a2d 100644 (file)
@@ -792,7 +792,7 @@ static int __proxy_sound_pool_pause_stream(const char *pars)
        size_t idx = 0;
        size_t stream_idx = 0;
 
-       if ((pars == NULL) || (sscanf(pars, " %zu %i", &idx, &stream_idx) < 2)) {
+       if ((pars == NULL) || (sscanf(pars, " %zu %zu", &idx, &stream_idx) < 2)) {
                _printf(CMD_COLOR_RED, "You have to specify both pool identifier and "
                                "stream to be paused identifier! Format: " CMD_PAUSE_STREAM
                                " <pool id> <stream id>\n");
@@ -825,7 +825,7 @@ static int __proxy_sound_pool_resume_stream(const char *pars)
        size_t idx = 0;
        size_t stream_idx = 0;
 
-       if ((pars == NULL) || (sscanf(pars, " %zu %i", &idx, &stream_idx) < 2)) {
+       if ((pars == NULL) || (sscanf(pars, " %zu %zu", &idx, &stream_idx) < 2)) {
                _printf(CMD_COLOR_RED, "You have to specify both pool identifier and "
                                "stream to be resumed identifier! Format: " CMD_RESUME_STREAM
                                " <pool id> <stream id>\n");
index 28ecf47..d3e61bf 100644 (file)
@@ -186,7 +186,7 @@ size_t ts_getline(char *cmd_line)
        print_cmd_prompt();
 
        /* Read whole line */
-       int ci = 0;
+       size_t ci = 0;
        char cc = '\0';
        int c = 0;
        while ((c = getch()) != EOF && (cc = (char)c) != '\n' &&