[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 14:10:24 PDT 2021


mbenfield updated this revision to Diff 383161.
mbenfield added a comment.

Support %c and %[ specifiers.

Changed the diagnostic message to accommodate.


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.383161.patch
Type: text/x-patch
Size: 12224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211028/ce9cfb97/attachment.bin>


More information about the cfe-commits mailing list