From: Nick Clifton Date: Thu, 30 Oct 2014 17:16:17 +0000 (+0000) Subject: Fixes a seg-fault in the ihex parser when it encounters a malformed ihex file. X-Git-Tag: gdb-7.9.0-release~787 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0102ea8cec5fc509bba6c91df61b7ce23a799d32;p=external%2Fbinutils.git Fixes a seg-fault in the ihex parser when it encounters a malformed ihex file. PR binutils/17512 * ihex.c (ihex_scan): Fix typo in invocation of ihex_bad_byte. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f25c1b1..c15e8cb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,7 @@ 2014-10-30 Nick Clifton PR binutils/17512 + * ihex.c (ihex_scan): Fix typo in invocation of ihex_bad_byte. * coffgen.c (coff_get_normalized_symtab): Prevent buffer overrun. 2014-10-29 Nick Clifton diff --git a/bfd/ihex.c b/bfd/ihex.c index 8d3590d..9b3b813 100644 --- a/bfd/ihex.c +++ b/bfd/ihex.c @@ -321,7 +321,7 @@ ihex_scan (bfd *abfd) { if (! ISHEX (buf[i])) { - ihex_bad_byte (abfd, lineno, hdr[i], error); + ihex_bad_byte (abfd, lineno, buf[i], error); goto error_return; } }