[mips][microMIPS] Fix an invalid read for lwm32 and reserved reglist values.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 18 Sep 2015 14:20:54 +0000 (14:20 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 18 Sep 2015 14:20:54 +0000 (14:20 +0000)
commit45f413067f4cc8571524788e94ce2ec70102e2eb
tree1608273081719f7701183a8f93ffa71e5c231f88
parentefcddc28d19069878554422a6688630b1bdcb13b
[mips][microMIPS] Fix an invalid read for lwm32 and reserved reglist values.

Summary:
Some values of 'reglist' are reserved and cause the disassembler to read past
the end of the Regs array. Treat lwm32's containing reserved values as invalid
instructions.

Reviewers: zoran.jovanovic

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D12959

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Disassembler/MipsDisassembler.cpp
test/MC/Disassembler/Mips/micromips32r3/invalid.txt [new file with mode: 0644]