From 84e032a252e6a4a619e5acdc6deeadea35835059 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 13 Aug 2014 17:13:12 +0900 Subject: [PATCH] embryo_cc - coverity mem access issue - fix this fixes CID 1039316 in case error num is beyond errmsg bounds --- src/bin/embryo/embryo_cc_sc5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/embryo/embryo_cc_sc5.c b/src/bin/embryo/embryo_cc_sc5.c index 838a08a..ac8eaa3 100644 --- a/src/bin/embryo/embryo_cc_sc5.c +++ b/src/bin/embryo/embryo_cc_sc5.c @@ -73,6 +73,7 @@ error(int number, ...) if (number < 100) { + if (number > 74) number = 74; msg = errmsg[number - 1]; errflag = TRUE; /* set errflag (skip rest of erroneous expression) */ errnum++; -- 2.7.4