[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Tomasz Kojm tkojm at clamav.net
Sun Apr 4 01:07:12 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit fbc33106bcd5d71b7d647593d7f84360a81dc44e
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Wed Oct 7 22:26:48 2009 +0200

    cli_caloff: offset_max was not set in some cases

diff --git a/libclamav/matcher.c b/libclamav/matcher.c
index efd56bf..c58deb1 100644
--- a/libclamav/matcher.c
+++ b/libclamav/matcher.c
@@ -277,8 +277,12 @@ int cli_caloff(const char *offstr, struct cli_target_info *info, int fd, unsigne
 		return CL_EARG;
 	}
 
-	if(offset_max && *offset_min != CLI_OFF_NONE)
-	    *offset_max = *offset_min + offdata[2];
+	if(offset_max) {
+	    if(*offset_min != CLI_OFF_NONE)
+		*offset_max = *offset_min + offdata[2];
+	    else
+		*offset_max = CLI_OFF_NONE;
+	}
     }
 
     return CL_SUCCESS;

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list