[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 00:57:03 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit e54f3fd16633278f6a0cd0aa4bd8ce511378bd28
Author: Török Edvin <edwin at clamav.net>
Date:   Wed Jul 8 12:20:13 2009 +0300

    Fix a theoretical bug in the !HAVE_SAR case.
    It is unlikely anyone was using the !HAVE_SAR code.

diff --git a/libclamav/others.h b/libclamav/others.h
index d70ed71..417043a 100644
--- a/libclamav/others.h
+++ b/libclamav/others.h
@@ -306,7 +306,7 @@ static inline void cli_writeint32(char *offset, uint32_t value)
 #ifdef HAVE_SAR
 #define CLI_SRS(n,s) ((n)>>(s))
 #else
-#define CLI_SRS(n,s) (((n)>>(s)) ^ (1<<(sizeof(n)*8-1-s)) - (1<<(sizeof(n)*8-1-s)))
+#define CLI_SRS(n,s) ((((n)>>(s)) ^ (1<<(sizeof(n)*8-1-s))) - (1<<(sizeof(n)*8-1-s)))
 #endif
 #define CLI_SAR(n,s) n = CLI_SRS(n,s)
 

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list