Fix SVACE defect (INTEGER_OVERFLOW) 33/283233/1 accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen_9.0 accepted/tizen/8.0/unified/20231005.092852 accepted/tizen/9.0/unified/20241030.233638 accepted/tizen/unified/20221102.020524 tizen_8.0_m2_release tizen_9.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 0155ca39c4c98fa9d655bb8150109c3c9a1e8a32..6b30241dba9f248c50e9da4e484330335952912f 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 8e125592461d83afe28716fbbf28c5c9f7656bb6..7188a2ddc2c11ba1382589c8d2eaaa6d0fbb412a 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 28ecf4771880dc3e5e2690e342dc2bfc23128ff3..d3e61bfd203a0c99709050c5ed52a8cf0fd5ec84 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' &&