]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Cleanup #2 of the fix.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 19 Dec 2010 06:05:34 +0000 (07:05 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 19 Dec 2010 06:05:34 +0000 (07:05 +0100)
libelf/elf_getdata_rawchunk.c

index b1e17a5d166cb7380368c33a529aa4d78ef91bf3..3ec2100a81191bd5d522f828cac3f6844950cc9e 100644 (file)
@@ -79,8 +79,7 @@ elf_getdata_rawchunk (elf, offset, size, type)
     }
 
   if (unlikely (offset < 0 || offset + (off64_t) size < offset
-               || (elf->maximum_size != ~((size_t) 0)
-                   && offset + size > elf->maximum_size)))
+               || offset + size > elf->maximum_size))
     {
       /* Invalid request.  */
       __libelf_seterrno (ELF_E_INVALID_OP);