[PATCH] D49656: [analyzer] Add support for more pointer invalidating functions in InnerPointerChecker
Reka Kovacs via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 22 20:56:50 PDT 2018
rnkovacs created this revision.
rnkovacs added reviewers: NoQ, xazax.hun, george.karpenkov.
Herald added subscribers: mikhail.ramalho, a.sidorin, dkrupp, szepet, baloghadamsoftware, whisperity.
According to the standard, pointers referring to the elements of a `basic_string` sequence may also be invalidated if they are used as an argument to any standard library function taking a reference to non-const `basic_string` as an argument. This patch makes InnerPointerChecker warn for these cases as well.
Repository:
rC Clang
https://reviews.llvm.org/D49656
Files:
lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
lib/StaticAnalyzer/Checkers/MallocChecker.cpp
test/Analysis/inner-pointer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49656.156719.patch
Type: text/x-patch
Size: 11351 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180723/f52827bd/attachment-0001.bin>
More information about the cfe-commits
mailing list