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


The following commit has been merged in the debian/unstable branch:
commit 8596e2785ac40e1be7bfe76d6d606aca97ddee71
Author: Török Edvin <edwin at clamav.net>
Date:   Wed Mar 17 19:33:54 2010 +0200

    Switch interpreter to debug mode by default.
    
    This does more sanity checks.

diff --git a/libclamav/bytecode_vm.c b/libclamav/bytecode_vm.c
index 1649ccb..416ea84 100644
--- a/libclamav/bytecode_vm.c
+++ b/libclamav/bytecode_vm.c
@@ -30,9 +30,12 @@
 #include "readdb.h"
 #include <string.h>
 
+/* Enable this to catch more bugs in the RC phase */
+#define CL_BYTECODE_DEBUG
+
 /* These checks will also be done by the bytecode verifier, but for
  * debugging purposes we have explicit checks, these should never fail! */
-#ifdef CL_DEBUG
+#ifdef CL_BYTECODE_DEBUG
 static int bcfail(const char *msg, long a, long b,
 		  const char *file, unsigned line)
 {

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list