]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix typo in last change.
authorRoland McGrath <roland@redhat.com>
Wed, 14 Apr 2010 18:37:06 +0000 (11:37 -0700)
committerRoland McGrath <roland@redhat.com>
Wed, 14 Apr 2010 18:37:06 +0000 (11:37 -0700)
libelf/elf32_getphdr.c

index 507fc2aa587e85fe758f1e838f2da3eddd730f26..80f54fd7bc11e60158ab2271eea67611c8287f15 100644 (file)
@@ -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);