[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:16:24 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 2fd156de61a12c56bb61df6594cb4c21e914a76c
Author: Török Edvin <edwin at clamav.net>
Date:   Mon Jan 25 15:06:30 2010 +0200

    don't return NULL here.

diff --git a/libclamav/bytecode_api.c b/libclamav/bytecode_api.c
index e85cd8b..9c4f2ad 100644
--- a/libclamav/bytecode_api.c
+++ b/libclamav/bytecode_api.c
@@ -351,7 +351,7 @@ uint8_t* cli_bcapi_malloc(struct cli_bc_ctx *ctx, uint32_t size)
 #else
     /* TODO: implement using a list of pointers we allocated! */
     cli_errmsg("cli_bcapi_malloc not implemented for systems without mmap yet!\n");
-    return NULL;
+    return cli_malloc(size);
 #endif
 }
 

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list