[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/etch-volatile, updated. debian/0.94.dfsg.2-1+volatile1-4-g3605937

Michael Tautschnig mt at debian.org
Fri Apr 10 14:51:16 UTC 2009


The following commit has been merged in the debian/etch-volatile branch:
commit 586736128d65abc0097d8c831df23858d908e0d2
Author: Michael Tautschnig <mt at debian.org>
Date:   Fri Apr 3 20:50:33 2009 +0200

    ScottK backported patch to fix #1462

diff --git a/debian/changelog b/debian/changelog
index 0c60f4a..6fab59d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ clamav (0.94.dfsg.2-1~volatile2) etch-volatile; urgency=low
   * Backported change from 0.95 of FLEVEL_DCONF to be able to re-enable
     signatures when security issues have been fixed.
   * Fixed division by zero with --detect-broken (upstream #1335)
+  * clamd and clamscan get hung up (upstream #1462)
 
  -- Michael Tautschnig <mt at debian.org>  Fri, 03 Apr 2009 20:41:05 +0200
 
diff --git a/libclamav/untar.c b/libclamav/untar.c
index 94ee2a6..cc8dddf 100644
--- a/libclamav/untar.c
+++ b/libclamav/untar.c
@@ -172,7 +172,11 @@ cli_untar(const char *dir, int desc, unsigned int posix, cli_ctx *ctx)
 
 			if(skipEntry) {
 				const int nskip = (size % BLOCKSIZE || !size) ? size + BLOCKSIZE - (size % BLOCKSIZE) : size;
-
+				
+				if(nskip < 0) {
+					cli_dbgmsg("cli_untar: got nagative skip size, giving up\n");
+					return CL_CLEAN;
+				}
 				cli_dbgmsg("cli_untar: skipping entry\n");
 				lseek(desc, nskip, SEEK_CUR);
 				continue;

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list