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

Collapse All | Expand All

(-)a/binutils/readelf.c (-1 / +1 lines)
Lines 13358-13364 apply_relocations (Filedata * filedata, Link Here
13358
	    }
13358
	    }
13359
13359
13360
	  rloc = start + rp->r_offset;
13360
	  rloc = start + rp->r_offset;
13361
	  if ((rloc + reloc_size) > end || (rloc < start))
13361
	  if (rloc >= end || (rloc + reloc_size) > end || (rloc < start))
13362
	    {
13362
	    {
13363
	      warn (_("skipping invalid relocation offset 0x%lx in section %s\n"),
13363
	      warn (_("skipping invalid relocation offset 0x%lx in section %s\n"),
13364
		    (unsigned long) rp->r_offset,
13364
		    (unsigned long) rp->r_offset,

Return to bug 24829