[PATCH] D48522: [analyzer] Highlight c_str() call in DanglingInternalBuffer checker

Reka Kovacs via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 23 12:04:20 PDT 2018


rnkovacs created this revision.
rnkovacs added reviewers: NoQ, xazax.hun, george.karpenkov, dcoughlin.
Herald added subscribers: mikhail.ramalho, a.sidorin, dkrupp, szepet, baloghadamsoftware, whisperity.

Add a bug visitor to `DanglingInternalBuffer` checker that places a note at the point where the dangling pointer was obtained.
The visitor is handed over to `MallocChecker` and attached to the report there.


Repository:
  rC Clang

https://reviews.llvm.org/D48522

Files:
  lib/StaticAnalyzer/Checkers/AllocationState.h
  lib/StaticAnalyzer/Checkers/DanglingInternalBufferChecker.cpp
  lib/StaticAnalyzer/Checkers/MallocChecker.cpp
  test/Analysis/dangling-internal-buffer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48522.152601.patch
Type: text/x-patch
Size: 5720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180623/b9e42bae/attachment.bin>


More information about the cfe-commits mailing list