[PATCH] D104887: [clang] Evaluate strlen of strcpy argument for -Wfortify-source.

Michael Benfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 18 16:05:15 PDT 2021


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

Rebased and addressed comments.

- Renamed ComputeCheckVariantSize.

- const Expr *.

- Changed existing test case to write only one excess byte.

- Added new, non-diagnosing test case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104887

Files:
  clang/include/clang/AST/Expr.h
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/AST/ExprConstant.cpp
  clang/lib/Sema/SemaChecking.cpp
  clang/test/Analysis/security-syntax-checks.m
  clang/test/Sema/warn-fortify-source.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104887.359655.patch
Type: text/x-patch
Size: 17785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210718/4bd5ff9a/attachment-0001.bin>


More information about the cfe-commits mailing list