Closed Mart-Bogdan closed 2 weeks ago
I have found this as warning from GCC when was installing some packages from AUR.
There is possibility of buffer overflow, especially in this case:
sprintf(line, "Odd first line %s on file %s?", line, dataFile);
Because we are using content of array line inside template, and it can be 199 chars already.
line
Actually offending line was already fixed in upstrem (this repo) by using buffer of size 300, but anyway using snprintf is safer.
All committers have signed the CLA.
I have found this as warning from GCC when was installing some packages from AUR.
There is possibility of buffer overflow, especially in this case:
Because we are using content of array
line
inside template, and it can be 199 chars already.Actually offending line was already fixed in upstrem (this repo) by using buffer of size 300, but anyway using snprintf is safer.