Import a patch from the mainline to fix a seg-fault in the BFD library:
authorNick Clifton <nickc@redhat.com>
Fri, 31 Oct 2014 10:24:58 +0000 (10:24 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 31 Oct 2014 10:24:58 +0000 (10:24 +0000)
PR binutils/17512
* ihex.c (ihex_scan): Fix typo in invocation of ihex_bad_byte.
* coffgen.c (coff_get_normalized_symtab): Prevent buffer overrun.

bfd/ChangeLog
bfd/ihex.c

index bbcb3454165089c8c94801babed93ca33e7901fa..efcaa367121703de75d2d78a9e87a081ee198b3e 100644 (file)
@@ -1,3 +1,12 @@
+2014-10-31  Nick Clifton  <nickc@redhat.com>
+
+       Apply trunk patch:
+
+       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-30  Nick Clifton  <nickc@redhat.com>
 
        Appy trunk patch:
index 8d3590d670e9c34a2a98642f31fdac9ebea739f1..9b3b81387984019b424b10883235eab9fdbafe9a 100644 (file)
@@ -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;
                }
            }