RISCVDisassembler should check number of bytes available before reading them.
Crash noticed when enabling -DLLVM_USE_SANITIZER=Address.
This bug was uncovered by a LLVM MC Disassembler Protocol Buffer Fuzzer for the RISC-V assembly language.
 Differential  D51708  
[RISCV] Fix AddressSanitizer heap-buffer-overflow in disassembling Authored by apazos on Sep 5 2018, 4:04 PM. 
Details RISCVDisassembler should check number of bytes available before reading them. This bug was uncovered by a LLVM MC Disassembler Protocol Buffer Fuzzer for the RISC-V assembly language. 
Diff Detail 
 Event Timeline |