[PATCH] aout relocs

msnyder@sonic.net msnyder@sonic.net
Wed Jul 25 20:10:00 GMT 2007

Check me on this one, I'm a little uncertain.

As near as I can tell, if reloc_size is zero, the routine does
nothing useful.  Maybe it will never be zero, but if it is, a few
iffy things will happen:

 * we'll call malloc with a size of zero, which is ill defined,
and later free the result

 * we'll call bfd_bread with a size of zero, and

 * a potentially null pointer may slip thru the cracks.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: reloc.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20070725/28870a58/attachment.txt>

More information about the Binutils mailing list