raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0b7e3cf42256c22f2feb0be1915f0b2947fb73f6
commit 0b7e3cf42256c22f2feb0be1915f0b2947fb73f6 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Mon Sep 1 19:15:46 2014 +0900 embryo_cc - fix possible buffer overrun fix CID 1039594 --- src/bin/embryo/embryo_cc_sc1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c index ff998e7..0cf39e4 100644 --- a/src/bin/embryo/embryo_cc_sc1.c +++ b/src/bin/embryo/embryo_cc_sc1.c @@ -1560,7 +1560,8 @@ decl_const(int vclass) if (lex(&val, &str) != tSYMBOL) /* read in (new) token */ error(20, str); /* invalid symbol name */ symbolline = fline; /* save line where symbol was found */ - strcpy(constname, str); /* save symbol name */ + strncpy(constname, str, sizeof(constname) - 1); /* save symbol name */ + constname[sizeof(constname) - 1] = 0; needtoken('='); constexpr(&val, &exprtag); /* get value */ needtoken(tTERM); --
