Fixes for memory access violations triggered by running nlmconv on
authorNick Clifton <nickc@redhat.com>
Thu, 8 Jan 2015 12:37:46 +0000 (12:37 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 8 Jan 2015 12:37:46 +0000 (12:37 +0000)
commit3565cf8fedf2bae2b383fae66dde62c3bdae51c9
tree21c3b99a8b0addfa8bed0af8c376321c667c67f5
parent025ac41482555f6273dee37988734a9f88633dbc
Fixes for memory access violations triggered by running nlmconv on
fuzzed binaries.

PR binutils/17512
* nlmconv.c (i386_mangle_relocs): Skip relocs without an
associated symbol.
(powerpc_mangle_relocs): Skip unrecognised relocs.  Check address
range before applying a reloc.
binutils/ChangeLog
binutils/nlmconv.c