[llvm-commits] BitstreamReader patch

Yan Ivnitskiy yan at matasano.com
Fri Jun 24 15:26:43 PDT 2011


Hello,

Attached is a patch for the SkipBlock method for the BitstreamCursor class that sanity checks the length of words to skip. If the NumWords value is large enough, it is possible to overflow the amount of bytes to skip, and reset the bitstream cursor to any (4-byte aligned) address that is lower than the start of the mapped bitcode file.

Thanks,
Yan 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitstreamreader.diff
Type: application/octet-stream
Size: 723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110624/0381427c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 495 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110624/0381427c/attachment.sig>


More information about the llvm-commits mailing list