Fix an attempt to allocate an overlarge amount of memory when decoding a corrupt...
commit45f5fe468b23c92b571756ec72b6a9c7be034074
authorNick Clifton <nickc@redhat.com>
Tue, 11 Apr 2023 14:30:02 +0000 (11 15:30 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Apr 2023 14:30:02 +0000 (11 15:30 +0100)
tree983be532e9c66368c69e590d570fcc9c8a6e2163
parent37522c873e86dd4941b9cdf38116f31d447d2234
Fix an attempt to allocate an overlarge amount of memory when decoding a corrupt ELF format file.

  PR 30311
  * readelf.c (uncompress_section_contents): Check for a suspiciously large uncompressed size.
binutils/ChangeLog
binutils/readelf.c