commit 46ca45416a029532dfea0208cf0264520474fa43 parent 1968875f0e3c1b8d70a2b5365ac5e258c5189281 Author: Christian Grothoff <christian@grothoff.org> Date: Mon, 21 Dec 2009 11:56:19 +0000 CID 32 Diffstat:
| M | src/common/unzip.c | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/common/unzip.c b/src/common/unzip.c @@ -1290,14 +1290,12 @@ long EXTRACTOR_common_unzip_zlib_seek_file_func(voidpf opaque, switch (origin) { case ZLIB_FILEFUNC_SEEK_SET: - if ( (offset > e->size) || - (offset < 0) ) + if (offset > e->size) return -1; e->pos = offset; break; case ZLIB_FILEFUNC_SEEK_END: - if ( (offset > e->size) || - (offset < 0) ) + if (offset > e->size) return -1; e->pos = e->size - offset; break;