2007-07-26 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 26 Jul 2007 18:18:07 +0000 (18:18 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 26 Jul 2007 18:18:07 +0000 (18:18 +0000)
* tekhex.c (first_phase): Check return value for null.

bfd/ChangeLog
bfd/tekhex.c

index 3b90fcd7b1336e5376ab01c39170530f42fe4160..d435e77d22dec3e80571c198a59092ceb79305e7 100644 (file)
@@ -1,5 +1,7 @@
 2007-07-26  Michael Snyder  <msnyder@access-company.com>
 
+       * tekhex.c (first_phase): Check return value for null.
+
        * elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless 
        pointer increment.
 
index 57a26d7c2298859a5ff6ccbf2b36122d2410f93e..2df774fc00fce971450f6de0817f82d4c774ede0 100644 (file)
@@ -389,6 +389,8 @@ first_phase (bfd *abfd, int type, char *src)
            return FALSE;
          memcpy (n, sym, len + 1);
          section = bfd_make_section (abfd, n);
+         if (section == NULL)
+           return FALSE;
        }
       while (*src)
        {