bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Was having a crash with 2.13/CVS ld; this change has fixed it


From: Alan Modra
Subject: Re: Was having a crash with 2.13/CVS ld; this change has fixed it
Date: Sat, 26 Oct 2002 22:30:26 +0930
User-agent: Mutt/1.4i

On Sat, Oct 26, 2002 at 06:50:19AM +0000, Nicholas Adrian Vinen wrote:
> 
> bfd/elflink.h:
> 8144c8144
> <       bytes = (size / file_align + 1) * sizeof (boolean);
> ---
> >       bytes = (size / file_align + 2) * sizeof (boolean);
> 
>    The realloc a few lines below was crashing. Perhaps the memory block
> was trashed past the end? Since the ptr is stored as ptr-1, perhaps the
> extra +1 is needed to make up for it (the other +1 is because if you
> want to index data at 7, you need 8 bytes...)

No, the code as is looks correct to me.  I think it more likely
that there's some sort of problem with elf_gc_record_vtentry's
arguments, probably "addend".

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]