diff --git a/lib/checkio.cpp b/lib/checkio.cpp index e28bf18d2..85da4d384 100644 --- a/lib/checkio.cpp +++ b/lib/checkio.cpp @@ -392,7 +392,7 @@ void CheckIO::invalidScanfError(const Token *tok, bool portability) { if (portability) reportError(tok, Severity::portability, - "invalidscanf", "scanf without field width limits can crash with huge input data on some versions of libc.\n" + "invalidscanf_libc", "scanf without field width limits can crash with huge input data on some versions of libc.\n" "scanf without field width limits can crash with huge input data on libc versions older than 2.13-25. Add a field " "width specifier to fix this problem:\n" " %i => %3i\n" diff --git a/lib/checkio.h b/lib/checkio.h index 19566901b..9a24a9cf6 100644 --- a/lib/checkio.h +++ b/lib/checkio.h @@ -133,6 +133,7 @@ private: c.useClosedFileError(0); c.seekOnAppendedFileError(0); c.invalidScanfError(0, false); + c.invalidScanfError(0, true); c.wrongPrintfScanfArgumentsError(0,"printf",3,2); c.invalidScanfArgTypeError_s(0, 1, "s", NULL); c.invalidScanfArgTypeError_int(0, 1, "d", NULL, false);