embryo_cc_sc1 : Prevent string overflow 12/88612/1
authorJEONGHYUN YUN <jh0506.yun@samsung.com>
Tue, 20 Sep 2016 04:05:22 +0000 (13:05 +0900)
committerJEONGHYUN YUN <jh0506.yun@samsung.com>
Tue, 20 Sep 2016 04:08:11 +0000 (13:08 +0900)
Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
Change-Id: I28fadd87d0157ded8c6e958274eb0fe798b4112a

src/bin/embryo/embryo_cc_sc1.c

index 30a5329de80ebb41e9c8a3a8eedf0c20ffaf5b6c..e0bd22b2e1391f0866cefc96d3f2aaba8bf302e1 100644 (file)
@@ -2098,6 +2098,7 @@ funcstub(int native)
             error(10);         /* illegal function or declaration */
             return;
          }                     /* if */
+        assert(sizeof(str) <= sNAMEMAX);
        strcpy(symbolname, str);
      }                         /* if */
    needtoken('(');             /* only functions may be native/forward */