MFC r326135: bfd: fix segfault in the ihex parser on malformed ihex file

From binutils commit 0102ea8cec5fc509bba6c91df61b7ce23a799d32, made
available under GPLv2 by Nick Clifton.

PR:		198824
Security:	CVE-2014-8503
This commit is contained in:
Ed Maste 2017-11-30 00:27:49 +00:00
parent 4a259b9b45
commit 259d410454
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=326382

View File

@ -320,7 +320,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;
}
}