off by one in bfd/syms.c or bfd/elfcode.h?
Alan Modra
amodra@bigpond.net.au
Tue Mar 26 16:18:00 GMT 2002
On Tue, Mar 26, 2002 at 08:09:28AM -0800, Gregory Steuck wrote:
> >>>>> "Ian" == Ian Lance Taylor <ian@airs.com> writes:
>
> Ian> I would say that the bug is not in either of the functions you
> Ian> mention, but rather in _bfd_elf_get_symtab_upper_bound. It
> Ian> does not correctly handle the case of symtab_hdr->sh_size == 0,
> Ian> as it does not leave room for the trailing null entry.
>
> Would this be a correct patch then? (against release 2.10, I think)
I've checked in a slight variation on this patch.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list