[PATCH] D66049: Fixes Bug 41729 and improves strlcat and strlcpy modeling

Daniel Krupp via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 10 01:09:24 PDT 2019


dkrupp created this revision.
dkrupp added reviewers: NoQ, Szelethus, gamesh411.
Herald added subscribers: cfe-commits, rnkovacs.
Herald added a project: clang.

Fixes Bug 41729 (https://bugs.llvm.org/show_bug.cgi?id=41729)
 and the following errors:

  -Fixes false positive reports of strlcat
  -The return value of strlcat and strlcpy is now correctly calculated
  -The resulting string length of strlcat and strlcpy is now correctly calculated


Repository:
  rC Clang

https://reviews.llvm.org/D66049

Files:
  lib/StaticAnalyzer/Checkers/CStringChecker.cpp
  test/Analysis/bsd-string.c
  test/Analysis/cstring-syntax.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66049.214512.patch
Type: text/x-patch
Size: 21035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190810/956e0f72/attachment-0001.bin>


More information about the cfe-commits mailing list