Fix memory access violations triggered by processing fuzzed binaries with a 32-bit...
authorNick Clifton <nickc@redhat.com>
Fri, 6 Feb 2015 12:19:20 +0000 (12:19 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 6 Feb 2015 12:19:20 +0000 (12:19 +0000)
commit8490fb409a37072389da7cafc3a92255e9a34c98
tree65d8ca3d3c9ae47a3f6bbd2e77a27aecaef91ed5
parent5929c344f957f93253efa4c3495a996789d48ae7
Fix memory access violations triggered by processing fuzzed binaries with a 32-bit version of readelf, compiled on a 64-bit host.

PR binutils/17531
* dwarf.c (xcmalloc): Fail if the arguments are too big.
(xcrealloc): Likewise.
(xcalloc2): Likewise.
binutils/ChangeLog
binutils/dwarf.c