From: Seungbae Shin Date: Thu, 20 Oct 2022 12:50:48 +0000 (+0900) Subject: Fix SVACE defect (INTEGER_OVERFLOW) X-Git-Tag: accepted/tizen/unified/20221102.020524^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_8.0_unified;p=platform%2Fcore%2Fapi%2Fsound-pool.git Fix SVACE defect (INTEGER_OVERFLOW) [Version] 0.0.24 [Issue Type] Svace Change-Id: I099f78f936149a27f1d6da219e575fb32b1d7f44 --- diff --git a/packaging/capi-media-sound-pool.spec b/packaging/capi-media-sound-pool.spec index 0155ca3..6b30241 100644 --- a/packaging/capi-media-sound-pool.spec +++ b/packaging/capi-media-sound-pool.spec @@ -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 diff --git a/test/proxy/src/proxy.c b/test/proxy/src/proxy.c index 8e12559..7188a2d 100644 --- a/test/proxy/src/proxy.c +++ b/test/proxy/src/proxy.c @@ -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 " \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 " \n"); diff --git a/test/sound_pool_test.c b/test/sound_pool_test.c index 28ecf47..d3e61bf 100644 --- a/test/sound_pool_test.c +++ b/test/sound_pool_test.c @@ -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' &&