This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: off by one in bfd/syms.c or bfd/elfcode.h?
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Gregory Steuck <greg at nest dot cx>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 26 Mar 2002 16:02:21 +1030
- Subject: Re: off by one in bfd/syms.c or bfd/elfcode.h?
- References: <15519.62812.394291.640080@tidy.nest.cx>
On Mon, Mar 25, 2002 at 08:13:16PM -0800, Gregory Steuck wrote:
>
> This causes a segv on openbsd-sparc64. Changing
> _bfd_generic_read_minisymbols to allocate sizeof (asymbol *) more
> fixes the problem, but I am not sure if the fix is the correct one.
The real error is that _bfd_elf_get_symtab_upper_bound and
_bfd_elf_get_dynamic_symtab_upper_bound don't return the correct size.
--
Alan Modra
IBM OzLabs - Linux Technology Centre