[PATCH] D111833: [clang] Fortify warning for scanf calls with field width too big.
Michael Benfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 28 09:31:43 PDT 2021
mbenfield updated this revision to Diff 383064.
mbenfield added a comment.
Only diagnose if conversion specifier is %s.
Give the location of the particular argument rather than the location of the function call.
Test to make sure we don't warn on %d.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111833/new/
https://reviews.llvm.org/D111833
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/warn-fortify-scanf.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111833.383064.patch
Type: text/x-patch
Size: 10553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211028/ef0640cb/attachment-0001.bin>
More information about the cfe-commits
mailing list