[llvm-commits] [PATCH] [MC] Reading off end of buffer when disassembling truncated x86 asm (PR7710)
Richard Smith
richard at metafoo.co.uk
Mon Jan 3 04:44:43 PST 2011
Hi,
The attached patch (also attached to PR7710) fixes two issues which cause
llvm-mc to incorrectly disassemble truncated asm:
1) A off-by-one error in llvm-mc's MemoryObject allowed reading one byte
past the end of the buffer.
2) The X86 disassembler did not bail out with an error if it encountered a
read error when parsing the mod/rm byte.
Please review (and commit).
Thanks,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-7710.diff
Type: text/x-patch
Size: 1240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110103/6a412b71/attachment.bin>
More information about the llvm-commits
mailing list