Memory overrun bug in CVS arm-elf-ld

Nick Clifton nickc@redhat.com
Wed Jun 18 09:34:00 GMT 2003


Hi Alan,

> Nick, I think this is wrong.  h->vtable_entries_size is used here
> (oldbytes) and in other places to determine how many entries are valid.
> Just allocating extra space won't fix the valid entry count.
>
> 	* elflink.h (elf_gc_record_vtentry): Revert last change.  Correct
> 	size calculation from addend.  Round size up.
>
> Note that rounding the size shouldn't be necessary, but I'd rather be
> bomb-proof.

Ok - your fix is much better than mine.  Thanks very much for looking
into this.

Cheers
        Nick
        



More information about the Binutils mailing list