diff options
author | Nick Clifton <nickc@redhat.com> | 2014-10-30 17:16:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-10-30 17:16:17 +0000 |
commit | 0102ea8cec5fc509bba6c91df61b7ce23a799d32 (patch) | |
tree | e0996457418f28dcc9a25c098d66b5bbd8d2198d /bfd | |
parent | 7e760b06b212f01b3819d5b37e8f5b613e0db34c (diff) | |
download | gdb-0102ea8cec5fc509bba6c91df61b7ce23a799d32.zip gdb-0102ea8cec5fc509bba6c91df61b7ce23a799d32.tar.gz gdb-0102ea8cec5fc509bba6c91df61b7ce23a799d32.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 1 | ||||
-rw-r--r-- | bfd/ihex.c | 2 |
2 files changed, 2 insertions, 1 deletions
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 <nickc@redhat.com> 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 <nickc@redhat.com> @@ -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; } } |