Unsigned integer overflows in readelf checks
authorAlan Modra <amodra@gmail.com>
Wed, 20 Feb 2019 07:52:50 +0000 (18:22 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 20 Feb 2019 07:52:50 +0000 (18:22 +1030)
commitc22b42ce308eb538050b4b5789e406b63102b35a
tree097dc6ca803567ca3176c58cd647dee1b4e7fe97
parentedd01d077c5f7a0f76ec4fb77b5b9f5b151fa50a
Unsigned integer overflows in readelf checks

PR 24132
PR 24138
* readelf.c (get_data): Avoid possibility of overflow when
checking for a read that may extend past end of file.
(process_program_headers): Likewise.
binutils/ChangeLog
binutils/readelf.c