Fix illegal memory access errors triggered by running srconv on fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Fri, 13 Feb 2015 12:14:05 +0000 (12:14 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 13 Feb 2015 12:14:05 +0000 (12:14 +0000)
commit951eaaec17411eba4debe19781f6b8b54306256e
tree1be6fd05bc2f063241cddccb211b06acfc99290b
parentf641dd969f91a83adf319b269c2411141b0a26a9
Fix illegal memory access errors triggered by running srconv on fuzzed binaries.

PR binutils/17512
* dwarf.c (read_leb128): Fix test for shift becoming too large.

* coffgrok.c (do_define): Add check for type size overflow.
* srconv.c (walk_tree_sfile): Check that enough sections are
available before parsing.
(prescan): Likewise.
binutils/ChangeLog
binutils/coffgrok.c
binutils/srconv.c