[analyzer] Fix crash in MallocChecker.
authorDevin Coughlin <dcoughlin@apple.com>
Fri, 16 Dec 2016 18:41:40 +0000 (18:41 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Fri, 16 Dec 2016 18:41:40 +0000 (18:41 +0000)
commite3b75ded98fefbd9b52d897b25bb619cfa4df699
tree13e7e12e78a5d9c54d8907e56e18726fc1b2805a
parent8980ba643e3ec8d00d7cdf75a3a298fa1fd4fee2
[analyzer] Fix crash in MallocChecker.

Fix a crash in the MallocChecker when the extent size for the argument
to new[] is not known.

A patch by Abramo Bagnara and Dániel Krupp!

https://reviews.llvm.org/D27849

Differential Revision: https://reviews.llvm.org/D27849

llvm-svn: 289970
clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
clang/test/Analysis/out-of-bounds-new.cpp