12 lines
486 B
Diff
12 lines
486 B
Diff
|
--- binutils.orig/binutils/readelf.c 2019-08-13 10:03:33.518792590 +0100
|
||
|
+++ binutils-2.32/binutils/readelf.c 2019-08-13 10:04:22.885418269 +0100
|
||
|
@@ -13234,7 +13234,7 @@ apply_relocations (Filedata *
|
||
|
}
|
||
|
|
||
|
rloc = start + rp->r_offset;
|
||
|
- if ((rloc + reloc_size) > end || (rloc < start))
|
||
|
+ if (rloc >= end || (rloc + reloc_size) > end || (rloc < start))
|
||
|
{
|
||
|
warn (_("skipping invalid relocation offset 0x%lx in section %s\n"),
|
||
|
(unsigned long) rp->r_offset,
|