mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-12 03:43:33 +08:00
asan: som: unknown read
* som.c (setup_sections): Sanity check subspace.name.
This commit is contained in:
parent
44f41bb7a1
commit
8248d21a5b
@ -1,3 +1,7 @@
|
||||
2020-03-11 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* som.c (setup_sections): Sanity check subspace.name.
|
||||
|
||||
2020-03-11 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf64-ppc.c (ppc64_elf_inline_plt): Do increment rel in for loop.
|
||||
|
@ -2197,6 +2197,9 @@ setup_sections (bfd *abfd,
|
||||
som_swap_subspace_dictionary_in (&ext_subspace, &subspace);
|
||||
|
||||
/* Setup the subspace name string. */
|
||||
if (subspace.name >= file_hdr->space_strings_size)
|
||||
goto error_return;
|
||||
|
||||
subspace_name = subspace.name + space_strings;
|
||||
|
||||
amt = strlen (subspace_name) + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user