diff options
| author | Ulrich Drepper <[email protected]> | 2006-04-05 03:13:34 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2006-04-05 03:13:34 +0000 |
| commit | 3a5052a8e16f38f8a0d0b3c5925e743608036ed9 (patch) | |
| tree | 35afb2a8b1361bd87ec439d6cac070d80aaef21e /libelf/elf32_updatefile.c | |
| parent | b43797284f61e63e0521e1c7263eb379bdd26995 (diff) | |
One more fixup for elf_update.elfutils-0.120
Diffstat (limited to 'libelf/elf32_updatefile.c')
| -rw-r--r-- | libelf/elf32_updatefile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libelf/elf32_updatefile.c b/libelf/elf32_updatefile.c index 59973503..7561a685 100644 --- a/libelf/elf32_updatefile.c +++ b/libelf/elf32_updatefile.c @@ -231,7 +231,8 @@ __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) assert ((char *) elf->map_address + elf->start_offset < (char *) scn->shdr.ELFW(e,LIBELFBITS)); assert ((char *) scn->shdr.ELFW(e,LIBELFBITS) - < (char *) elf->map_address + elf->maximum_size); + < ((char *) elf->map_address + elf->start_offset + + elf->maximum_size)); void *p = alloca (sizeof (ElfW2(LIBELFBITS,Shdr))); scn->shdr.ELFW(e,LIBELFBITS) |
