projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a418a
)
embryo_cc_sc1 : Prevent string overflow
12/88612/1
author
JEONGHYUN YUN
<jh0506.yun@samsung.com>
Tue, 20 Sep 2016 04:05:22 +0000
(13:05 +0900)
committer
JEONGHYUN YUN
<jh0506.yun@samsung.com>
Tue, 20 Sep 2016 04:08:11 +0000
(13:08 +0900)
Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
Change-Id: I28fadd87d0157ded8c6e958274eb0fe798b4112a
src/bin/embryo/embryo_cc_sc1.c
patch
|
blob
|
history
diff --git
a/src/bin/embryo/embryo_cc_sc1.c
b/src/bin/embryo/embryo_cc_sc1.c
index 30a5329de80ebb41e9c8a3a8eedf0c20ffaf5b6c..e0bd22b2e1391f0866cefc96d3f2aaba8bf302e1 100644
(file)
--- a/
src/bin/embryo/embryo_cc_sc1.c
+++ b/
src/bin/embryo/embryo_cc_sc1.c
@@
-2098,6
+2098,7
@@
funcstub(int native)
error(10); /* illegal function or declaration */
return;
} /* if */
+ assert(sizeof(str) <= sNAMEMAX);
strcpy(symbolname, str);
} /* if */
needtoken('('); /* only functions may be native/forward */