HomePhabricator

[analyzer] Calculate extent size for memory regions allocated by new expression.

Authored by xazax.hun on Sep 19 2016, 1:39 PM.

Description

[analyzer] Calculate extent size for memory regions allocated by new expression.

ArrayBoundChecker did not detect out of bounds memory access errors in case an
array was allocated by the new expression. This patch resolves this issue.

Patch by Daniel Krupp!

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

llvm-svn: 281934