diff options
author | H.J. Lu <hjl@lucon.org> | 2009-08-03 23:56:08 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2009-08-03 23:56:08 +0000 |
commit | c0a492a0ff4f99048b72bcbc831f7f2a46e1bfac (patch) | |
tree | 1735e8f75f5ae3b4831c6ac88d9bda19da1c4274 /bfd/elf.c | |
parent | 774efe691e0a9d111ad9263832218447afcefca5 (diff) | |
download | gdb-c0a492a0ff4f99048b72bcbc831f7f2a46e1bfac.tar.gz |
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
diff --git a/bfd/elf.c b/bfd/elf.c index f27c607ab2b..9863a3a32db 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -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; |