Added missing message to --errorlist output, changed Id to avoid duplicate

This commit is contained in:
PKEuS 2014-08-02 18:41:34 +02:00
parent a6da71e598
commit de66ed4071
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -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);