This is an archive of the discontinued LLVM Phabricator instance.

[mips][mc] Fix a crash when disassembling odd sized sections
ClosedPublic

Authored by sdardis on Feb 15 2017, 4:43 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

sdardis created this revision.Feb 15 2017, 4:43 AM
This revision is now accepted and ready to land.Feb 23 2017, 6:12 AM
This revision was automatically updated to reflect the committed changes.