raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=88fda07299e3569be8b9b64c4c6e95652d845679
commit 88fda07299e3569be8b9b64c4c6e95652d845679 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Mon Sep 1 19:05:50 2014 +0900 embryo_cc - fix possible buffer overrun fix CID 1039590 --- src/bin/embryo/embryo_cc_sc1.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c index b97e199..15049f9 100644 --- a/src/bin/embryo/embryo_cc_sc1.c +++ b/src/bin/embryo/embryo_cc_sc1.c @@ -3803,12 +3803,14 @@ doswitch(void) if (swdefault == FALSE) { /* store lbl_exit as the "none-matched" label in the switch table */ - strcpy(labelname, itoh(lbl_exit)); + strncpy(labelname, itoh(lbl_exit), sizeof(labelname) - 1); + labelname[sizeof(labelname) - 1] = 0; } else { /* lbl_case holds the label of the "default" clause */ - strcpy(labelname, itoh(lbl_case)); + strncpy(labelname, itoh(lbl_case), sizeof(labelname) - 1); + labelname[sizeof(labelname) - 1] = 0; } /* if */ ffcase(casecount, labelname, TRUE); /* generate the rest of the table */ --
