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

nobled nobled at dreamwidth.org
Fri Feb 3 05:41:29 PST 2012


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.



More information about the llvm-commits mailing list