public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] asan: som: unknown read
@ 2020-03-20  0:54 gdb-buildbot
  2020-03-20  0:54 ` Failures on Fedora-i686, branch master gdb-buildbot
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gdb-buildbot @ 2020-03-20  0:54 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8248d21a5b8b7bb9970163b8b327f5ac2f857f33 ***

commit 8248d21a5b8b7bb9970163b8b327f5ac2f857f33
Author:     Alan Modra <amodra@gmail.com>
AuthorDate: Wed Mar 11 22:59:07 2020 +1030
Commit:     Alan Modra <amodra@gmail.com>
CommitDate: Wed Mar 11 23:02:51 2020 +1030

    asan: som: unknown read
    
            * som.c (setup_sections): Sanity check subspace.name.

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c60fe8c7f9..3b252e1196 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/som.c b/bfd/som.c
index 3aa3d60b02..5676f0f500 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -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;


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-03-23  2:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20  0:54 [binutils-gdb] asan: som: unknown read gdb-buildbot
2020-03-20  0:54 ` Failures on Fedora-i686, branch master gdb-buildbot
2020-03-20  1:26 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot
2020-03-20  1:48 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
2020-03-20  1:57 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
2020-03-20  2:39 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot
2020-03-20  2:45 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot
2020-03-22  9:16 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot
2020-03-22 18:41 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, " gdb-buildbot
2020-03-23  2:48 ` Failures on Fedora-x86_64-native-gdbserver-m32, " gdb-buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).