Fix decoding of Windows resources.
authorNick Clifton <nickc@redhat.com>
Thu, 28 Jul 2016 14:37:16 +0000 (15:37 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 28 Jul 2016 14:37:16 +0000 (15:37 +0100)
commit4931146e91c3c8208f1e0b8462b8f33e70da506a
treea9f43d38c4e19c1635af081bfaef07625d630e4f
parentff20cab8a222c43de501a340016e11cae6a272a7
Fix decoding of Windows resources.

PR binutils/17512
* rescoff.c (read_coff_res_dir): Fix detection of buffer overrun.
* resbin.c (bin_to_res_version): Allow for the padded length of a
version block to be longer than the recorded length.  Skip padding
bytes.
binutils/ChangeLog
binutils/resbin.c
binutils/rescoff.c