diff options
| author | Roland McGrath <[email protected]> | 2010-04-14 11:37:06 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-04-14 11:37:06 -0700 |
| commit | 9d81c7df78bf8b682e78ea8556b6d262e133e924 (patch) | |
| tree | ad565702cef81cf7b499cf0174857349b4c81e35 | |
| parent | 957072c18a906a43f0b428997d0c2b0da478213b (diff) | |
Fix typo in last change.
| -rw-r--r-- | libelf/elf32_getphdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libelf/elf32_getphdr.c b/libelf/elf32_getphdr.c index 507fc2aa..80f54fd7 100644 --- a/libelf/elf32_getphdr.c +++ b/libelf/elf32_getphdr.c @@ -105,7 +105,7 @@ __elfw2(LIBELFBITS,getphdr_wrlock) (elf) size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr)); - if (ehdr->e_phoff < elf->maximum_size + if (ehdr->e_phoff > elf->maximum_size || elf->maximum_size - ehdr->e_phoff < size) { __libelf_seterrno (ELF_E_INVALID_DATA); |
