projects
/
platform
/
adaptation
/
emulator
/
emulator-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8323b4
)
source: add a condition for tainted array index
71/63571/1
author
Jinhyung Choi
<jinh0.choi@samsung.com>
Thu, 24 Mar 2016 13:34:26 +0000
(22:34 +0900)
committer
Jinhyung Choi
<jinh0.choi@samsung.com>
Thu, 24 Mar 2016 13:34:26 +0000
(22:34 +0900)
Change-Id: I61874404c7bf9eb1514cc93253ba57fb8d6ca336
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
src/tv.cpp
patch
|
blob
|
history
diff --git
a/src/tv.cpp
b/src/tv.cpp
index d12876354f2f3956e36ab6ac588b72b25afe4871..85a103de92fcd4a437759ddb82e3fc89a4a561b7 100644
(file)
--- a/
src/tv.cpp
+++ b/
src/tv.cpp
@@
-479,7
+479,7
@@
bool msgproc_extinput(ijcommand* ijcmd)
section = strtok_r(NULL, token, &saveptr);
state = (unsigned int)atoi(section);
- if (number > MAX_EXTINPUT_COUNT) {
+ if (number
<= 0 || number
> MAX_EXTINPUT_COUNT) {
LOGDEBUG("external_input number : %d is invalid.", number);
return false;
}