summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-13 17:13:12 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-13 17:13:12 +0900
commit84e032a252e6a4a619e5acdc6deeadea35835059 (patch)
tree0cbd551f50dc84b53cef06a01843713f9264345c /src/bin/embryo
parentb0e98866351b55975debd750d207f89628615bbd (diff)
embryo_cc - coverity mem access issue - fix
this fixes CID 1039316 in case error num is beyond errmsg bounds
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/embryo/embryo_cc_sc5.c b/src/bin/embryo/embryo_cc_sc5.c
index 838a08aacc..ac8eaa3696 100644
--- a/src/bin/embryo/embryo_cc_sc5.c
+++ b/src/bin/embryo/embryo_cc_sc5.c
@@ -73,6 +73,7 @@ error(int number, ...)
73 73
74 if (number < 100) 74 if (number < 100)
75 { 75 {
76 if (number > 74) number = 74;
76 msg = errmsg[number - 1]; 77 msg = errmsg[number - 1];
77 errflag = TRUE; /* set errflag (skip rest of erroneous expression) */ 78 errflag = TRUE; /* set errflag (skip rest of erroneous expression) */
78 errnum++; 79 errnum++;