From 259d4104547de92b8bbc6591809fcba6dc87fd5a Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 30 Nov 2017 00:27:49 +0000 Subject: [PATCH] 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 --- contrib/binutils/bfd/ihex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/binutils/bfd/ihex.c b/contrib/binutils/bfd/ihex.c index 9f765b33f770..67ac720a6ebd 100644 --- a/contrib/binutils/bfd/ihex.c +++ b/contrib/binutils/bfd/ihex.c @@ -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; } }