summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2016-09-12 10:09:32 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2016-09-12 10:09:32 +0900
commit98229bc5d6cf1ebe11af4bb05a32f2a30b470f6e (patch)
treedb4a0b969b25b157c05b120ae261ffef4da23d72 /src
parent2598ea8da83a084b5a376ca8837ff199c21393a8 (diff)
embryo_cc: fix memory overflow in str
After for-loop i can have value 11. So the str should be longer than 11. @fix
Diffstat (limited to 'src')
-rw-r--r--src/bin/embryo/embryo_cc_sc7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/embryo/embryo_cc_sc7.c b/src/bin/embryo/embryo_cc_sc7.c
index 00e02523fe..db4fa69fba 100644
--- a/src/bin/embryo/embryo_cc_sc7.c
+++ b/src/bin/embryo/embryo_cc_sc7.c
@@ -454,7 +454,7 @@ matchsequence(char *start, char *end, char *pattern,
454 char symbols[_maxoptvars][_aliasmax + 1], int *match_length) 454 char symbols[_maxoptvars][_aliasmax + 1], int *match_length)
455{ 455{
456 int var, i; 456 int var, i;
457 char str[_aliasmax + 1]; 457 char str[_aliasmax + 2];
458 char *start_org = start; 458 char *start_org = start;
459 459
460 *match_length = 0; 460 *match_length = 0;