[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

David CARLIER via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 24 03:12:29 PDT 2018


devnexen created this revision.
devnexen added reviewers: george.karpenkov, NoQ.
devnexen created this object with visibility "All Users".
Herald added a subscriber: cfe-commits.

- Assuming strlcat is used with strlcpy we check as we can if the last argument does not equal os not larger than the buffer.
- Advising the proper usual pattern.


Repository:
  rC Clang

https://reviews.llvm.org/D49722

Files:
  lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
  test/Analysis/cstring-syntax.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49722.156993.patch
Type: text/x-patch
Size: 5978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180724/a0989448/attachment.bin>


More information about the cfe-commits mailing list