diff options
author | Ana Pazos <apazos@codeaurora.org> | 2018-09-07 18:23:19 +0000 |
---|---|---|
committer | Ana Pazos <apazos@codeaurora.org> | 2018-09-07 18:23:19 +0000 |
commit | b97d18945b821fe4f9b4c7059eb87e2a8734ab5d (patch) | |
tree | e9067228646b62a0224792bc0cbb7b55bf12fa54 /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h | |
parent | f06ffeee21aabbf1ae94a06df4374f296ab81ddb (diff) | |
download | bcm5719-llvm-b97d18945b821fe4f9b4c7059eb87e2a8734ab5d.tar.gz bcm5719-llvm-b97d18945b821fe4f9b4c7059eb87e2a8734ab5d.zip |
[RISCV] Fix AddressSanitizer heap-buffer-overflow in disassembling
Summary:
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.
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/D51708
llvm-svn: 341686
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h')
0 files changed, 0 insertions, 0 deletions