[PATCH] bfd: Always check compressed sections with the corrupt size

Alan Modra amodra@gmail.com
Thu Nov 4 22:16:30 GMT 2021


On Thu, Nov 04, 2021 at 06:38:26AM -0700, H.J. Lu wrote:
> Always check compressed sections with the corrupt size for non-MMO
> files.  Skip MMO files for compress_status == COMPRESS_SECTION_NONE
> since MMO has special handling for COMPRESS_SECTION_NONE.
> 
> I am checking in this.

This doesn't look correct to me.  When decompressing you can read a
section that is larger than the file size.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list