asan: som: unknown read
[deliverable/binutils-gdb.git] / bfd / som.c
index 3aa3d60b02bcd61372a61695f77fe01b27d85969..5676f0f5008081ad24f94a05a525a5f68bdf6e3b 100644 (file)
--- 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;
This page took 0.0226 seconds and 4 git commands to generate.