summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwoochan lee <wc0917.lee@samsung.com>2015-01-26 13:50:16 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-01-29 01:32:16 +0900
commit648ccd31551b8bb1a17959e8cbfa6ef16a41712e (patch)
tree735a36ce7848d0f5afd5e37926e4821af63d8c2f /src
parent60b1f44fdf7c9a8771554ff95c4bf2a4581faaac (diff)
embryo_cc_sc2.c: prevent memory corruption.
Summary: Modified code to following coverity result. (overflow the memory access.) @fix Reviewers: raster, Hermet Reviewed By: Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1893
Diffstat (limited to 'src')
-rw-r--r--src/bin/embryo/embryo_cc_sc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c
index 1456cb8fc9..7f0a125666 100644
--- a/src/bin/embryo/embryo_cc_sc2.c
+++ b/src/bin/embryo/embryo_cc_sc2.c
@@ -1106,7 +1106,7 @@ command(void)
1106 while ((*lptr <= ' ') && (*lptr != '\0')) 1106 while ((*lptr <= ' ') && (*lptr != '\0'))
1107 lptr++; 1107 lptr++;
1108 for (i = 0; 1108 for (i = 0;
1109 (i < (int)(sizeof(name))) && 1109 (i < (int)(sizeof(name)) - 1) &&
1110 (sc_isalpha(*lptr)); 1110 (sc_isalpha(*lptr));
1111 i++, lptr++) 1111 i++, lptr++)
1112 name[i] = *lptr; 1112 name[i] = *lptr;