PR 23316
* opncls.c (get_build_id): Check for a negative or excessive data
size in the build-id note.
BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
+2018-06-20 Nick Clifton <nickc@redhat.com>
+
+ PR 23316
+ * opncls.c (get_build_id): Check for a negative or excessive data
+ size in the build-id note.
+
2018-06-20 Nick Clifton <nickc@redhat.com>
PR 23299
inote.descdata = inote.namedata + BFD_ALIGN (inote.namesz, 4);
/* FIXME: Should we check for extra notes in this section ? */
- if (inote.descsz == 0
+ if (inote.descsz <= 0
|| inote.type != NT_GNU_BUILD_ID
|| inote.namesz != 4 /* sizeof "GNU" */
|| strncmp (inote.namedata, "GNU", 4) != 0
+ || inote.descsz > 0x7ffffffe
|| size < (12 + BFD_ALIGN (inote.namesz, 4) + inote.descsz))
{
free (contents);