Fixes for invalid memory accesses triggered by running windres on corrupt binaries.
authorNick Clifton <nickc@redhat.com>
Tue, 27 Jan 2015 17:32:23 +0000 (17:32 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 27 Jan 2015 17:32:23 +0000 (17:32 +0000)
commit0897ec15810bca3420ea7b8a91e491ed45780202
treedd7cc451877a5826e06000613f5d8bbf6b46e85e
parent877a8638ba563c667eb5358240334c473d0573a1
Fixes for invalid memory accesses triggered by running windres on corrupt binaries.

PR binutils/17512
* rcparse.y: Add checks to avoid integer divide by zero.
* rescoff.c (read_coff_rsrc): Add check on the size of the
resource section.
(read_coff_res_dir): Add check on the nesting level.
Check for resource names overrunning the buffer.
* resrc.c (write_rc_messagetable): Update formatting.
Add check of 'elen' being zero.
binutils/ChangeLog
binutils/rcparse.y
binutils/rescoff.c
binutils/resrc.c
This page took 0.024506 seconds and 4 git commands to generate.