]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: PR28610, Fix ASAN heap-buffer-overflow error in riscv_update_subset.
authorNelson Chu <nelson.chu@sifive.com>
Mon, 22 Nov 2021 07:31:32 +0000 (23:31 -0800)
committerNelson Chu <nelson.chu@sifive.com>
Mon, 22 Nov 2021 09:27:13 +0000 (17:27 +0800)
commit577bf39f10c6d50a52866eb8fc32d6d1e34bb215
treee775d36f2573a76d0bb0e0cbbcd909166daec0e5
parentbab31d145160cd4dec7b9ad0e79346382ebf8385
RISC-V: PR28610, Fix ASAN heap-buffer-overflow error in riscv_update_subset.

The architecture parser in riscv_update_subset shouldn't check (or access)
the pointer space which doesn't exist.

bfd/
pr 28610
* elfxx-riscv.c (riscv_update_subset): The architecture parser
shouldn't access the pointer space which doesn't exist.
bfd/elfxx-riscv.c