[patch bfd]: Prevent possible buffer overflow on pdata-section sorting
Kai Tietz
ktietz70@googlemail.com
Thu Apr 7 14:31:00 GMT 2011
2011/4/7 Alan Modra <amodra@gmail.com>:
> On Thu, Apr 07, 2011 at 08:15:42AM +0200, Kai Tietz wrote:
>> Hmm, not sure.
>
> Well, I'm 99% sure. :-) rawsize on an output section, if non-zero, is
> just a stale size at bfd_final_link.
So this 1% hits. I changed locally to use here just sec->size and I
found that pdata section doesn't get sorted proper anymore. (you can
verify this by objdump -x and it prints warnings about not ascending
data).
So I strictly want to stick here to my posted patch, as other
introduces regression.
Regards,
Kai
More information about the Binutils
mailing list