From 6934bdd5333b2abe0b59c678993ea090307c3066 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Wed, 25 Apr 2007 07:34:24 -0700 Subject: [PATCH] allow unpack of incompressible extents, such as http://www.equi4.com/pub/tk/8.4.13/tclkit-linux-x86.gz --- src/packer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packer.cpp b/src/packer.cpp index e770d972..85b28b24 100644 --- a/src/packer.cpp +++ b/src/packer.cpp @@ -697,7 +697,7 @@ bool Packer::getPackHeader(void *b, int blen) if (!testUnpackVersion(ph.version)) return false; - if (ph.c_len >= ph.u_len || (off_t)ph.c_len >= file_size + if (ph.c_len > ph.u_len || (off_t)ph.c_len >= file_size || ph.version <= 0 || ph.version >= 0xff) throwCantUnpack("header corrupted"); else if ((off_t)ph.u_len > ph.u_file_size)