Added missing message to --errorlist output, changed Id to avoid duplicate
This commit is contained in:
parent
a6da71e598
commit
de66ed4071
|
@ -392,7 +392,7 @@ void CheckIO::invalidScanfError(const Token *tok, bool portability)
|
||||||
{
|
{
|
||||||
if (portability)
|
if (portability)
|
||||||
reportError(tok, Severity::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 "
|
"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"
|
"width specifier to fix this problem:\n"
|
||||||
" %i => %3i\n"
|
" %i => %3i\n"
|
||||||
|
|
|
@ -133,6 +133,7 @@ private:
|
||||||
c.useClosedFileError(0);
|
c.useClosedFileError(0);
|
||||||
c.seekOnAppendedFileError(0);
|
c.seekOnAppendedFileError(0);
|
||||||
c.invalidScanfError(0, false);
|
c.invalidScanfError(0, false);
|
||||||
|
c.invalidScanfError(0, true);
|
||||||
c.wrongPrintfScanfArgumentsError(0,"printf",3,2);
|
c.wrongPrintfScanfArgumentsError(0,"printf",3,2);
|
||||||
c.invalidScanfArgTypeError_s(0, 1, "s", NULL);
|
c.invalidScanfArgTypeError_s(0, 1, "s", NULL);
|
||||||
c.invalidScanfArgTypeError_int(0, 1, "d", NULL, false);
|
c.invalidScanfArgTypeError_int(0, 1, "d", NULL, false);
|
||||||
|
|
Loading…
Reference in New Issue