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.
This commit is contained in:
parent
7e760b06b2
commit
0102ea8cec
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue