View | Details | Raw Unified | Return to bug 17512 | Differences between
and this patch

Collapse All | Expand All

(-)a/binutils/rescoff.c (-1 / +1 lines)
Lines 249-255 read_coff_res_dir (windres_bfd *wrbfd, const bfd_byte *data, Link Here
249
      for (j = 0; j < length; j++)
249
      for (j = 0; j < length; j++)
250
	{
250
	{
251
	  /* PR 17512: file: 05dc4a16.  */
251
	  /* PR 17512: file: 05dc4a16.  */
252
	  if (length < 0 || ers >= (bfd_byte *) ere || ers + j * 2 + 4 >= (bfd_byte *) ere)
252
	  if (length < 0 || ers >= flaginfo->data_end || ers + j * 2 + 4 >= flaginfo->data_end)
253
	    overrun (flaginfo, _("resource name"));
253
	    overrun (flaginfo, _("resource name"));
254
	  re->id.u.n.name[j] = windres_get_16 (wrbfd, ers + j * 2 + 2, 2);
254
	  re->id.u.n.name[j] = windres_get_16 (wrbfd, ers + j * 2 + 2, 2);
255
	}
255
	}

Return to bug 17512