From 9d81c7df78bf8b682e78ea8556b6d262e133e924 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 14 Apr 2010 11:37:06 -0700 Subject: [PATCH] Fix typo in last change. --- libelf/elf32_getphdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libelf/elf32_getphdr.c b/libelf/elf32_getphdr.c index 507fc2aa5..80f54fd7b 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); -- 2.47.2