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

Török Edvin edwin at clamav.net
Sun Apr 4 01:22:34 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit b6c03fb9c1749daad596b2c87dd8d914e995b980
Author: Török Edvin <edwin at clamav.net>
Date:   Wed Mar 10 14:58:18 2010 +0200

    Unit tests don't have fmap.
    
    Don't crash unit tests.

diff --git a/libclamav/scanners.c b/libclamav/scanners.c
index e5f5c3f..f36148b 100644
--- a/libclamav/scanners.c
+++ b/libclamav/scanners.c
@@ -1871,6 +1871,8 @@ static int cli_scanraw(cli_ctx *ctx, cli_file_t type, uint8_t typercg, cli_file_
 
 static void emax_reached(cli_ctx *ctx) {
     fmap_t **ctx_fmap = ctx->fmap;
+    if (!ctx_fmap)
+	return;
     while(*ctx_fmap) {
 	fmap_t *map = *ctx_fmap;
 	map->dont_cache_flag = 1;

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list