PR 27779
* dwarf.c (parse_gnu_debuglink): Reject empty names.
(parse_gnu_debugaltlink): Likewise.
+2021-04-27 Nick Clifton <nickc@redhat.com>
+
+ PR 27779
+ * dwarf.c (parse_gnu_debuglink): Reject empty names.
+ (parse_gnu_debugaltlink): Likewise.
+
2021-04-22 Clément Chigot <clement.chigot@atos.net>
* od-xcoff.c (dump_xcoff32_symbols): Adapt to new
name = (const char *) section->start;
crc_offset = strnlen (name, section->size) + 1;
+ if (crc_offset == 1)
+ return NULL;
crc_offset = (crc_offset + 3) & ~3;
if (crc_offset + 4 > section->size)
return NULL;
name = (const char *) section->start;
namelen = strnlen (name, section->size) + 1;
+ if (namelen == 1)
+ return NULL;
if (namelen >= section->size)
return NULL;