[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:13:31 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit ed528ece13a294cf903ae036c757c0d933bf16d0
Author: Török Edvin <edwin at clamav.net>
Date: Mon Jan 4 17:17:22 2010 +0200
The hashset's bitmap needs only capacity/32 memory, not capacity/8.
diff --git a/libclamav/hashtab.c b/libclamav/hashtab.c
index e4c629e..62861fb 100644
--- a/libclamav/hashtab.c
+++ b/libclamav/hashtab.c
@@ -434,7 +434,7 @@ int cli_hashset_init(struct cli_hashset* hs, size_t initial_capacity, uint8_t lo
if(!hs->keys) {
return CL_EMEM;
}
- hs->bitmap = cli_calloc(initial_capacity / 8, sizeof(*hs->bitmap));
+ hs->bitmap = cli_calloc(initial_capacity >> 5, sizeof(*hs->bitmap));
if(!hs->bitmap) {
free(hs->keys);
return CL_EMEM;
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list