summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.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
commit720683752e0de8970171dc4ef7762af4295120bb (patch)
tree27e8c436470319f2b3900f9ffaa3f56621591b7e /clang/lib/CodeGen/CodeGenModule.cpp
parent9335fecc2aac1c02f5594128c7dc62eb7ecee91a (diff)
downloadbcm5719-llvm-720683752e0de8970171dc4ef7762af4295120bb.tar.gz
bcm5719-llvm-720683752e0de8970171dc4ef7762af4295120bb.zip
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! llvm-svn: 68277
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud