diff options
author | Ana Pazos <apazos@codeaurora.org> | 2018-09-13 18:21:19 +0000 |
---|---|---|
committer | Ana Pazos <apazos@codeaurora.org> | 2018-09-13 18:21:19 +0000 |
commit | b0799dda77c6b75526e1415331e2a9656abd6f95 (patch) | |
tree | 7dcab35478a5080343f4053945e760089a1178ff /llvm/lib/Support/SymbolRemappingReader.cpp | |
parent | f1828e324090999545101aaf170d3566c40d1cd4 (diff) | |
download | llvm-b0799dda77c6b75526e1415331e2a9656abd6f95.zip llvm-b0799dda77c6b75526e1415331e2a9656abd6f95.tar.gz llvm-b0799dda77c6b75526e1415331e2a9656abd6f95.tar.bz2 |
[RISCV] Fix decoding of invalid instruction with C extension enabled.
Summary:
The illegal instruction 0x00 0x00 is being wrongly decoded as
c.addi4spn with 0 immediate.
The invalid instruction 0x01 0x61 is being wrongly decoded as
c.addi16sp with 0 immediate.
This bug was uncovered by a LLVM MC Disassembler Protocol Buffer Fuzzer
for the RISC-V assembly language.
Reviewers: asb
Reviewed By: asb
Subscribers: rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, mgrang, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, asb
Differential Revision: https://reviews.llvm.org/D51815
llvm-svn: 342159
Diffstat (limited to 'llvm/lib/Support/SymbolRemappingReader.cpp')
0 files changed, 0 insertions, 0 deletions