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

aCaB acab at clamav.net
Sun Apr 4 01:21:47 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 6ccc61e850c3f494bd5bc8e2fac15119a912b50f
Author: aCaB <acab at clamav.net>
Date:   Fri Mar 5 17:41:55 2010 +0100

    mark top of the fmap stack

diff --git a/libclamav/scanners.c b/libclamav/scanners.c
index 2019c88..5ec5e65 100644
--- a/libclamav/scanners.c
+++ b/libclamav/scanners.c
@@ -2306,15 +2306,13 @@ int cl_scandesc(int desc, const char **virname, unsigned long int *scanned, cons
     ctx.container_type = CL_TYPE_ANY;
     ctx.container_size = 0;
     ctx.dconf = (struct cli_dconf *) engine->dconf;
-    ctx.fmap = cli_calloc(sizeof(fmap_t *), ctx.engine->maxreclevel + 1);
+    ctx.fmap = cli_calloc(sizeof(fmap_t *), ctx.engine->maxreclevel + 2);
     if(!ctx.fmap)
 	return CL_EMEM;
-    ctx.fmap--;
     ctx.hook_lsig_matches = cli_bitset_init();
 
     rc = cli_magic_scandesc(desc, &ctx);
 
-    ctx.fmap++;
     cli_bitset_free(ctx.hook_lsig_matches);
     free(ctx.fmap);
     if(rc == CL_CLEAN && ctx.found_possibly_unwanted)

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list