[Bug c/79879] Integer overflow in functions from scanf() family in MinGW, Cygwin, Borland/Embarcadero C environments
wyporek at poczta dot onet.pl
gcc-bugzilla@gcc.gnu.org
Sun Mar 5 21:11:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79879
--- Comment #13 from Lukas Wyporek <wyporek at poczta dot onet.pl> ---
OK, so we can compile with -Wformat=2 (which can be used instead of group
"-Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k"):
gcc main.c -o main.exe -Wall -Wextra -Wformat=2
and the compiler will warn about that format is not string literal:
"warning: format not a string literal, argument types not checked"
Thank you Andrew,
Are you Polish maybe?
More information about the Gcc-bugs
mailing list