Closed alexey-lysiuk closed 11 months ago
Thanks. Can you make lastchari
static const, instead? E.g. like:
static char line[512];
+ static const int lastchari = Q_COUNTOF(line) - 2;
const char *s;
Thanks, this is in. (Applied a tiny reorganization as a follow-up as b3b4203735d8622719e4d322de8da0d2b6c982c7)
Thanks, this is in. (Applied a tiny reorganization as a follow-up as b3b4203)
Sorry, I missed the fact that new variable was moved to a different line in your code snippet.
Using v1.06
progs.dat
, the following code causes buffer overflow as string value it references is long enough to fill entireline
variable