]> granicus.if.org Git - clang/commit
Change *BugReport constructors to take StringRefs.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Nov 2009 12:08:24 +0000 (12:08 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Nov 2009 12:08:24 +0000 (12:08 +0000)
commitd02e232c43b979758810794de24d3f5cde40fe93
tree32a20b050ba1a7c26828bde07df0f8d8bd7355eb
parent4fdba99ccce46d577ea1bcd5081843ef95ff5c11
Change *BugReport constructors to take StringRefs.

- Eliminates many calls to std::string.c_str()
- Fixes an invalid read in ReturnStackAddressChecker due to an unsafe call to
  StringRef.data() which doesn't guarantee null-termination.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88779 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/clang/Analysis/PathSensitive/BugReporter.h
lib/Analysis/ArrayBoundChecker.cpp
lib/Analysis/BadCallChecker.cpp
lib/Analysis/CallGraph.cpp
lib/Analysis/CastToStructChecker.cpp
lib/Analysis/DereferenceChecker.cpp
lib/Analysis/DivZeroChecker.cpp
lib/Analysis/FixedAddressChecker.cpp
lib/Analysis/MallocChecker.cpp
lib/Analysis/PointerArithChecker.cpp
lib/Analysis/PointerSubChecker.cpp
lib/Analysis/ReturnPointerRangeChecker.cpp
lib/Analysis/ReturnStackAddressChecker.cpp
lib/Analysis/ReturnUndefChecker.cpp
lib/Analysis/UndefinedArgChecker.cpp
lib/Analysis/UndefinedArraySubscriptChecker.cpp
lib/Analysis/UndefinedAssignmentChecker.cpp
lib/Analysis/VLASizeChecker.cpp