Missing check for isImm() in some Immediate classes.
This bug was uncovered by a LLVM MC Assembler Protocol Buffer Fuzzer for the RISC-V assembly language.
Paths
| Differential D50797
[RISCV] Fixed Assertion`Kind == Immediate && "Invalid type access!"' failed. ClosedPublic Authored by apazos on Aug 15 2018, 11:45 AM.
Details Summary Missing check for isImm() in some Immediate classes. This bug was uncovered by a LLVM MC Assembler Protocol Buffer Fuzzer for the RISC-V assembly language.
Diff Detail
Event TimelineHerald added subscribers: jocewei, PkmX, the_o and 12 others. · View Herald TranscriptAug 15 2018, 11:45 AM apazos retitled this revision from [PGO] Fixed assertion due to mismatched memcpy size type. to [RISCV] Fixed Assertion`Kind == Immediate && "Invalid type access!"' failed..Aug 15 2018, 11:46 AM Herald added subscribers: rkruppe, shiva0217, kito-cheng. · View Herald TranscriptAug 15 2018, 11:46 AM This revision is now accepted and ready to land.Aug 15 2018, 12:35 PM Comment Actions Updated one more Immediate class. Comment Actions
I think it's okay to merge this one, and if we find more then we can put that in subsequent patches. Closed by commit rL340674: [RISCV] Fixed Assertion`Kind == Immediate && "Invalid type access!"' failed. (authored by apazos). · Explain WhyAug 24 2018, 4:48 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 162508 llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/trunk/test/MC/RISCV/rv32c-fuzzed-invalid.s
|