diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-08-03 23:56:08 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-08-03 23:56:08 +0000 |
commit | 45b222d606213014334f236604075cd55d1399cc (patch) | |
tree | 78da3f7068802fcc7d9f25e9afc3a60aa0d20bd4 /bfd/elf.c | |
parent | 1ffa32eed68b02c79dfc3b5b113344ef62df7b83 (diff) | |
download | gdb-45b222d606213014334f236604075cd55d1399cc.zip gdb-45b222d606213014334f236604075cd55d1399cc.tar.gz gdb-45b222d606213014334f236604075cd55d1399cc.tar.bz2 |
2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/10363
* elf.c (bfd_elf_string_from_elf_section): Return NULL on
invalid string offset.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -331,7 +331,7 @@ bfd_elf_string_from_elf_section (bfd *abfd, (shindex == shstrndx && strindex == hdr->sh_name ? ".shstrtab" : bfd_elf_string_from_elf_section (abfd, shstrndx, hdr->sh_name))); - return ""; + return NULL; } return ((char *) hdr->contents) + strindex; |