From 814b5378b4c88c3d9af3f0a38c4d15a03cae4bbf Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Thu, 26 Jul 2007 18:18:07 +0000 Subject: [PATCH] 2007-07-26 Michael Snyder * tekhex.c (first_phase): Check return value for null. --- bfd/ChangeLog | 2 ++ bfd/tekhex.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3b90fcd..d435e77 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,7 @@ 2007-07-26 Michael Snyder + * tekhex.c (first_phase): Check return value for null. + * elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless pointer increment. diff --git a/bfd/tekhex.c b/bfd/tekhex.c index 57a26d7..2df774f 100644 --- a/bfd/tekhex.c +++ b/bfd/tekhex.c @@ -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) { -- 2.7.4