+2023-09-29 Nick Clifton <nickc@redhat.com>
+
+ PR 30906
+ * elf.c (_bfd_elf_slurp_version_tables): Test that the verref
+ section header has been initialised before using it.
+
2023-09-28 Nick Clifton <nickc@redhat.com>
PR 30886
= elf_tdata (abfd)->dt_strtab + iverneed->vn_file;
else
iverneed->vn_filename = NULL;
- }
+ }
+ else if (hdr == NULL)
+ goto error_return_bad_verref;
else
iverneed->vn_filename
= bfd_elf_string_from_elf_section (abfd, hdr->sh_link,
else
ivernaux->vna_nodename = NULL;
}
+ else if (hdr == NULL)
+ goto error_return_bad_verref;
else
ivernaux->vna_nodename
= bfd_elf_string_from_elf_section (abfd, hdr->sh_link,
iverneed->vn_nextref = NULL;
if (iverneed->vn_next == 0)
break;
- if (i + 1 < hdr->sh_info)
+ if (hdr != NULL && (i + 1 < hdr->sh_info))
iverneed->vn_nextref = iverneed + 1;
if (iverneed->vn_next