diff options
author | Alan Modra <amodra@gmail.com> | 2023-03-06 20:29:42 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-03-06 20:42:01 +1030 |
commit | a1f4d06969bed2fd4747784d569bfaeb4b50dc80 (patch) | |
tree | 15d7daef7c01b982bcfb003421d102107bde7198 /gdb/python/lib | |
parent | 889d15d574a8c43c44dc0983343897e47874a2b6 (diff) | |
download | binutils-a1f4d06969bed2fd4747784d569bfaeb4b50dc80.zip binutils-a1f4d06969bed2fd4747784d569bfaeb4b50dc80.tar.gz binutils-a1f4d06969bed2fd4747784d569bfaeb4b50dc80.tar.bz2 |
macho null dereference read
The main problem here was not returning -1 from canonicalize_symtab on
an error, leaving the vector of relocs only partly initialised and one
with a null sym_ptr_ptr.
* mach-o.c (bfd_mach_o_canonicalize_symtab): Return -1 on error,
not 0.
(bfd_mach_o_pre_canonicalize_one_reloc): Init sym_ptr_ptr to
undefined section sym.
Diffstat (limited to 'gdb/python/lib')
0 files changed, 0 insertions, 0 deletions