* asan: som: unknown read
@ 2020-03-11 12:33 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-03-11 12:33 UTC (permalink / raw)
To: binutils
* som.c (setup_sections): Sanity check subspace.name.
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;
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-11 12:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 12:33 asan: som: unknown read Alan Modra
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).