mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
|
2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/10433
|
PR ld/10433
|
||||||
|
@ -331,7 +331,7 @@ bfd_elf_string_from_elf_section (bfd *abfd,
|
|||||||
(shindex == shstrndx && strindex == hdr->sh_name
|
(shindex == shstrndx && strindex == hdr->sh_name
|
||||||
? ".shstrtab"
|
? ".shstrtab"
|
||||||
: bfd_elf_string_from_elf_section (abfd, shstrndx, hdr->sh_name)));
|
: bfd_elf_string_from_elf_section (abfd, shstrndx, hdr->sh_name)));
|
||||||
return "";
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ((char *) hdr->contents) + strindex;
|
return ((char *) hdr->contents) + strindex;
|
||||||
|
Reference in New Issue
Block a user