[PATCH 3/6] aix: remove handlers for negative r_symndx in relocate_section

Alan Modra amodra@gmail.com
Mon Feb 22 06:58:44 GMT 2021


On Tue, Feb 16, 2021 at 09:57:04AM +0000, CHIGOT, CLEMENT wrote:
> r_symndx can't be negative AFAIK. Thus all the checks are useless.

It would at least prevent fuzzed object files from playing havoc.
coff_slurp_reloc_table allows -1 as r_symndx for some reason.  I'm
inclined to deny this patch.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list