diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-10-07 17:16:59 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-10-07 17:16:59 +0000 |
commit | 42b4248f05a40b4761738292592dc69609644a10 (patch) | |
tree | a0c34376e6e970c8a27f43f14c969b9cb36cc381 /clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp | |
parent | 7741132f47fae4bb482a5ae88255333565f42c7d (diff) | |
download | bcm5719-llvm-42b4248f05a40b4761738292592dc69609644a10.tar.gz bcm5719-llvm-42b4248f05a40b4761738292592dc69609644a10.zip |
[analyzer] ArrayRef-ize BugReporter::EmitBasicReport.
No functionality change.
llvm-svn: 192114
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp index 34425e31406..0cdf911bb4b 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp @@ -213,11 +213,11 @@ void MallocOverflowSecurityChecker::OutputPossibleOverflows( e = PossibleMallocOverflows.end(); i != e; ++i) { - SourceRange R = i->mulop->getSourceRange(); BR.EmitBasicReport(D, "malloc() size overflow", categories::UnixAPI, "the computation of the size of the memory allocation may overflow", PathDiagnosticLocation::createOperatorLoc(i->mulop, - BR.getSourceManager()), &R, 1); + BR.getSourceManager()), + i->mulop->getSourceRange()); } } |