Fix arithmetic overflows running srconv on fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Thu, 26 Feb 2015 22:16:16 +0000 (22:16 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 26 Feb 2015 22:16:16 +0000 (22:16 +0000)
commitd93c7787a0dd4261b8ac65a92a33196b62ef57b4
treeb751d47d3eb56c2ae15b1229819c19227c52cbfb
parentc86934ceee0971a04bbfc145c7b9a53357c25c91
Fix arithmetic overflows running srconv on fuzzed binaries.

PR binutils/17512
* coffgrok.c (do_type): Check for an out of range tag index.
Check for integer overflow computing array dimension.
(do_define): Likewise.
binutils/ChangeLog
binutils/coffgrok.c