From: Jan Kratochvil Date: Sun, 19 Dec 2010 06:05:34 +0000 (+0100) Subject: Cleanup #2 of the fix. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4df5b13235ca2742c08e07615c6df571d2dfa700;p=thirdparty%2Felfutils.git Cleanup #2 of the fix. --- diff --git a/libelf/elf_getdata_rawchunk.c b/libelf/elf_getdata_rawchunk.c index b1e17a5d1..3ec2100a8 100644 --- a/libelf/elf_getdata_rawchunk.c +++ b/libelf/elf_getdata_rawchunk.c @@ -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);