* elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
+2021-01-14 Nick Clifton <nickc@redhat.com>
+
+ * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
+
2021-01-13 Alan Modra <amodra@gmail.com>
* Makefile.in: Regenerate.
type = bfd_get_32 (abfd, note->descdata);
- struct {
+ struct
+ {
const char *type_name;
unsigned long min_size;
} size_check[] =
{ "NOTE_INFO_MODULE64", 16 },
};
- if (type > (sizeof(size_check)/sizeof(size_check[0])))
+ if (type == 0 || type > (sizeof(size_check)/sizeof(size_check[0])))
return TRUE;
if (note->descsz < size_check[type - 1].min_size)