What steps will reproduce the problem?
1. if (offset < 15)
string[offset++] = c;
the next character received is a '*', or ',' then there is a write outside the
array boundaries:
case ',':
case '*':
string[offset] = 0;
Version 22 used.
Either change the array size or if (offset < 15) to if (offset < 14)
Original issue reported on code.google.com by olf...@gmail.com on 18 Jan 2015 at 2:07
A #define should be used to define the size of the string array. That #define can then be used throughout the rest of the code when doing boundary checks.
Original issue reported on code.google.com by
olf...@gmail.com
on 18 Jan 2015 at 2:07