svn commit: r326135 - head/contrib/binutils/bfd

Ed Maste emaste at FreeBSD.org
Thu Nov 23 14:30:43 UTC 2017


Author: emaste
Date: Thu Nov 23 14:30:41 2017
New Revision: 326135
URL: https://svnweb.freebsd.org/changeset/base/326135

Log:
  bfd: fix segfault in the ihex parser on malformed ihex file
  
  From binutils commit 0102ea8cec5fc509bba6c91df61b7ce23a799d32, made
  available under GPLv2 by Nick Clifton.
  
  PR:		198824
  MFC after:	1 week
  Security:	CVE-2014-8503

Modified:
  head/contrib/binutils/bfd/ihex.c

Modified: head/contrib/binutils/bfd/ihex.c
==============================================================================
--- head/contrib/binutils/bfd/ihex.c	Thu Nov 23 14:29:07 2017	(r326134)
+++ head/contrib/binutils/bfd/ihex.c	Thu Nov 23 14:30:41 2017	(r326135)
@@ -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;
 		}
 	    }


More information about the svn-src-all mailing list