* elf.c (elf_add): Increase ".note.gnu.build-id" section size
checking up to 36 bytes.
Change-Id: I5a6046a551395ad61c8013a347c875ad22b33599
+2018-06-18 Denis Khalikov <d.khalikov@partner.samsung.com>
+
+ PR other/86198
+ * elf.c (elf_add): Increase ".note.gnu.build-id" section size
+ checking up to 36 bytes.
+
2018-01-16 Ian Lance Taylor <iant@golang.org>
* elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
if (note->type == NT_GNU_BUILD_ID
&& note->namesz == 4
&& strncmp (note->name, "GNU", 4) == 0
- && shdr->sh_size < 12 + ((note->namesz + 3) & ~ 3) + note->descsz)
+ && shdr->sh_size <= 12 + ((note->namesz + 3) & ~ 3) + note->descsz)
{
buildid_data = ¬e->name[0] + ((note->namesz + 3) & ~ 3);
buildid_size = note->descsz;