[PATCH] D29984: [mips][mc] Fix a crash when disassembling odd sized sections
Simon Dardis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 15 04:43:16 PST 2017
sdardis created this revision.
Make the MIPS disassembler consistent with the other targets in returning
a Size of zero when the input buffer cannot contain an instruction due
to it's size. Previously it reported the minimum instruction size when
it failed due to the buffer not being big enough for an instruction
causing llvm-objdump to crash when disassembling all sections.
Repository:
rL LLVM
https://reviews.llvm.org/D29984
Files:
lib/Target/Mips/Disassembler/MipsDisassembler.cpp
test/tools/llvm-objdump/Mips/disassemble-all.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29984.88510.patch
Type: text/x-patch
Size: 5111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170215/6a27d5dd/attachment.bin>
More information about the llvm-commits
mailing list