aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ConstantFolding.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-02 03:06:26 +0000
committerChris Lattner <sabre@nondot.org>2009-04-02 03:06:26 +0000
commitd0dfbe096dd71ca4d652784705584876f8b18250 (patch)
treec10940af4f42a3088efef5a3b4e72d7069950c68 /lib/Analysis/ConstantFolding.cpp
parent70748756427c115b9344c7ce7759ff7041ce879b (diff)
fix overflow checks in SmallVector:
"The code was doing "if (End+NumInputs > Capacity) ...". If End is close to 0xFFFFFFFF and NumInputs is large, it'll overflow, the condition will come out false, and the vector won't grow to accommodate the new elements, and the program will crash in memmove." Patch by Jeffrey Yasskin! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ConstantFolding.cpp')
0 files changed, 0 insertions, 0 deletions