summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-06-29 20:12:02 +0000
committerDuncan Sands <baldrick@free.fr>2010-06-29 20:12:02 +0000
commit29933505b67b43cbacc42d2a7b81d4ba03e1c25e (patch)
tree6e5af80665cf92c474df9e3e17da4446fc7d336c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent585c38e7764f63648039d668bd62dd7fd6fbc431 (diff)
downloadbcm5719-llvm-29933505b67b43cbacc42d2a7b81d4ba03e1c25e.tar.gz
bcm5719-llvm-29933505b67b43cbacc42d2a7b81d4ba03e1c25e.zip
Fix a buffer overflow noticed by gcc-4.6: zero is written into
SmallArray[SmallSize] in the SmallPtrSetIteratorImpl, and this is one off the end of the array. For those who care, right now gcc warns about writing off the end because it is confused about the declaration of SmallArray as having length 1 in the parent class SmallPtrSetIteratorImpl. However if you tweak code to unconfuse it, then it still warns about writing off the end of the array, because of this buffer overflow. In short, even with this fix gcc-4.6 will warn about writing off the end of the array, but now that is only because it is confused. llvm-svn: 107200
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud