]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: riscv_set_arch() can fail
authorJan Beulich <jbeulich@suse.com>
Fri, 5 Jun 2026 09:09:55 +0000 (11:09 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Jun 2026 09:09:55 +0000 (11:09 +0200)
commitaa04700525c30e140cdab646b72e31faa1608077
treed1f0c678aa3a5144908f4cd1444d8dae28e3cafb
parent175c54561d4f9f5bae4064d0bdac5a228243589f
RISC-V: riscv_set_arch() can fail

In that case neither riscv_rps_as.subset_list nor file_arch_str would be
set, yet the NULL pointers would be happily passed into functions not
expecting such.

Reviewed-by: Jiawei <jiawei@iscas.ac.cn>
gas/config/tc-riscv.c