PR 22957
* stabs.c (pop_binincl): Fail if the file index is off the end of
the stack.
+2018-03-13 Nick Clifton <nickc@redhat.com>
+
+ PR 22957
+ * stabs.c (pop_binincl): Fail if the file index is off the end of
+ the stack.
+
2018-03-13 Nick Clifton <nickc@redhat.com>
PR 22955
(parse_stab_members): Likewise.
(parse_stab_tilde_field): Likewise.
(parse_stab_array_type): Likewise.
+
* parse_stab: Compute the end of the string and then pass it on to
individual parser functions.
info->file_types = ((struct stab_types **)
xmalloc (sizeof *info->file_types));
info->file_types[0] = NULL;
-
info->so_string = NULL;
/* Now process whatever type we just got. */
return info->main_filename;
info->bincl_stack = o->next_stack;
+ if (o->file >= info->files)
+ return info->main_filename;
+
o->file_types = info->file_types[o->file];
if (info->bincl_stack == NULL)