[llvm-commits] [PATCH] Object: avoid undefined behavior when bounds-checking

nobled nobled at dreamwidth.org
Fri Feb 3 06:14:50 PST 2012


Duh, with patch this time...

> Don't form an out of bounds pointer just to test if it would be out of
> bounds (i.e. the comparison "if (SectionHeaderTable + SectionTableSize
>> base() + Data->getBufferSize())").
>
> Also add the same bounds checking for all the previous
> mapped structures.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Object-avoid-undefined-behavior-when-bounds-checking.patch
Type: text/x-patch
Size: 2970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120203/dc87bc32/attachment.bin>


More information about the llvm-commits mailing list