diff options
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 266e37e..a7831ef 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -10517,7 +10517,7 @@ apply_relocations (void * file, } rloc = start + rp->r_offset; - if ((rloc + reloc_size) > end) + if ((rloc + reloc_size) > end || (rloc < start)) { warn (_("skipping invalid relocation offset 0x%lx in section %s\n"), (unsigned long) rp->r_offset, |