mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
Ignore trailing bytes at the end of a Windows Resource Version structure.
PR 27686 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the end of the structure.
This commit is contained in:
parent
ac4d323ea0
commit
6be872a439
@ -1,3 +1,9 @@
|
||||
2021-04-14 Mark Harmstone <mark@harmstone.com>
|
||||
|
||||
PR 27686
|
||||
* resbin.c (bin_to_res_version): Ignore any trailing bytes at the
|
||||
end of the structure.
|
||||
|
||||
2021-04-14 Frederic Cambus <fred@statdns.com>
|
||||
|
||||
* readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
|
||||
|
@ -967,6 +967,9 @@ bin_to_res_version (windres_bfd *wrbfd, const bfd_byte *data, rc_uint_type lengt
|
||||
if (type != 0)
|
||||
fatal (_("unexpected version type %d"), (int) type);
|
||||
|
||||
/* PR 27686: Ignore any padding bytes after the end of the version structure. */
|
||||
length = verlen;
|
||||
|
||||
data += off;
|
||||
length -= off;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user