PR libgcc/61585
* unwind-seh.c (_Unwind_GetGR): Check for proper
index range.
(_Unwind_SetGR): Likewise.
From-SVN: r211900
+2014-06-23 Kai Tietz <ktietz@redhat.com>
+
+ PR libgcc/61585
+ * unwind-seh.c (_Unwind_GetGR): Check for proper
+ index range.
+ (_Unwind_SetGR): Likewise.
+
2014-05-22 Nick Clifton <nickc@redhat.com>
* config/msp430/t-msp430 (HOST_LIBGCC2_CFLAGS): Add
_Unwind_Word
_Unwind_GetGR (struct _Unwind_Context *c, int index)
{
- if (index < 0 || index > 2)
+ if (index < 0 || index >= 2)
abort ();
return c->reg[index];
}
void
_Unwind_SetGR (struct _Unwind_Context *c, int index, _Unwind_Word val)
{
- if (index < 0 || index > 2)
+ if (index < 0 || index >= 2)
abort ();
c->reg[index] = val;
}