Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
In SerialUtils.cc, the following code appears:
int len;
if (b < -120)
else
{ negative = false; len = -112 - b; }uint8_t barr[len];
as far as I'm aware, this is not legal in ANSI C and will be rejected by ANSI compliant compilers. Instead, this should be malloc()'d based upon the size of len and free()'d later.