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


The following commit has been merged in the debian/unstable branch:
commit a5b7bfabe020f11c781b8e7712e429c0ef544a46
Author: aCaB <acab at clamav.net>
Date:   Mon Mar 1 19:04:06 2010 +0100

    make rar stfu - bb#1835

diff --git a/libclamunrar/unrarhlp.c b/libclamunrar/unrarhlp.c
index 9ad7ea9..953a66a 100644
--- a/libclamunrar/unrarhlp.c
+++ b/libclamunrar/unrarhlp.c
@@ -15,6 +15,12 @@
 
 #include "libclamunrar/unrarhlp.h"
 
+#ifdef RAR_HIGH_DEBUG
+#define rar_dbgmsg printf
+#else
+static void rar_dbgmsg(const char* fmt,...){}
+#endif
+
 #define RAR_MAX_ALLOCATION 184549376
 
 void *rar_malloc(size_t size)
@@ -23,7 +29,7 @@ void *rar_malloc(size_t size)
 
 
     if(!size || size > RAR_MAX_ALLOCATION) {
-	fprintf(stderr, "UNRAR: rar_malloc(): Attempt to allocate %lu bytes. Please report to http://bugs.clamav.net\n", size);
+	rar_dbgmsg("UNRAR: rar_malloc(): Attempt to allocate %lu bytes. Please report to http://bugs.clamav.net\n", size);
 	return NULL;
     }
 
@@ -41,7 +47,7 @@ void *rar_realloc2(void *ptr, size_t size)
 
 
     if(!size || size > RAR_MAX_ALLOCATION) {
-	fprintf(stderr, "UNRAR: rar_realloc2(): Attempt to allocate %lu bytes. Please report to http://bugs.clamav.net\n", size);
+	rar_dbgmsg("UNRAR: rar_realloc2(): Attempt to allocate %lu bytes. Please report to http://bugs.clamav.net\n", size);
 	return NULL;
     }
 

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list