[PATCH] D158562: [clang][Sema] Add truncation warning on fortified snprintf

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 25 05:49:29 PDT 2023


aaron.ballman accepted this revision.
aaron.ballman added a comment.

LGTM!



================
Comment at: clang/lib/Sema/SemaChecking.cpp:1041
+                                       ASTContext &Context) {
+  if (auto *Format = dyn_cast<StringLiteral>(FormatExpr);
+      Format && (Format->isOrdinary() || Format->isUTF8())) {
----------------



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158562/new/

https://reviews.llvm.org/D158562



More information about the cfe-commits mailing list