diff options
author | Alan Modra <amodra@gmail.com> | 2025-07-29 10:46:04 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-07-29 22:28:10 +0930 |
commit | 0b23ce71150e80cb09ae2ea791001957b8b48269 (patch) | |
tree | 7808b710999a780094c4f06e84ad0519a2bd8bd5 /libbacktrace/instrumented_alloc.c | |
parent | 8fd6a9c70b4b67541dbafba64d0e215eada05ff1 (diff) | |
download | binutils-master.zip binutils-master.tar.gz binutils-master.tar.bz2 |
ppc32 isn't susceptible to the PR33223 segfault, but could hit a
_bfd_clear_contents segfault with a carefully crafted invalid object.
* elf32-ppc.c (ARRAY_SIZE): Define.
(ppc_elf_howto_init): Use ARRAY_SIZE.
(ppc_elf_reloc_name_lookup): Likewise.
(ppc_elf_info_to_howto): Likewise, and consolidate error
handling.
(ppc_elf_check_relocs): Guard against segfaults caused by a NULL
howto passed to _bfd_clear_contents. Use ARRAY_SIZE.
Diffstat (limited to 'libbacktrace/instrumented_alloc.c')
0 files changed, 0 insertions, 0 deletions