[safestack] Fix handling of array allocas.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 1 Dec 2015 00:06:13 +0000 (00:06 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 1 Dec 2015 00:06:13 +0000 (00:06 +0000)
commit531c21057053b9dd7d77ef59ddd92a1d99f0e1bc
treeaeffe1f37170539a2a992608d745ba28b645b58e
parent92989cbe8452a9406f6e0d3c5709b5745f27158a
[safestack] Fix handling of array allocas.

The current code does not take alloca array size into account and,
as a result, considers any access past the first array element to be
unsafe.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/SafeStack.cpp
test/Transforms/SafeStack/array.ll