raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=4329a359dc967d550965edd5139218afe3718347
commit 4329a359dc967d550965edd5139218afe3718347 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Mon Jul 11 22:23:58 2016 +0900 edje_cc handle theoretical string overflow (not real) shhh coverity these strings are internal fixed strings so never bigger than buffer,. but silence coverity to avoid noise. fixes CID 1355588 , 1355589 --- src/bin/edje/edje_cc_parse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/edje/edje_cc_parse.c b/src/bin/edje/edje_cc_parse.c index 4c860b5..ea0cc30 100644 --- a/src/bin/edje/edje_cc_parse.c +++ b/src/bin/edje/edje_cc_parse.c @@ -216,7 +216,8 @@ new_object(void) char buf[512] = { 0, }; char *end; - strcpy(buf, id); + strncpy(buf, id, sizeof(buf) - 1); + buf[sizeof(buf) - 1] = 0; end = strrchr(buf, '.'); if (end) end++; else end = buf; @@ -256,7 +257,8 @@ new_statement(void) char buf[512] = { 0, }; char *end; - strcpy(buf, id); + strncpy(buf, id, sizeof(buf) - 1); + buf[sizeof(buf) - 1] = 0; end = strrchr(buf, '.'); if (end) end++; else end = buf; --
