[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/etch-volatile, updated. debian/0.94.dfsg.2-1+volatile1-4-g3605937

Michael Tautschnig mt at debian.org
Fri Apr 10 14:51:16 UTC 2009


The following commit has been merged in the debian/etch-volatile branch:
commit 0ee2c3357f20fc88217e7d351cb20820adcf0778
Author: Michael Tautschnig <mt at debian.org>
Date:   Fri Apr 3 20:49:51 2009 +0200

    ScottK backported patch to fix upstream's #1335

diff --git a/debian/changelog b/debian/changelog
index 6af6151..0c60f4a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ clamav (0.94.dfsg.2-1~volatile2) etch-volatile; urgency=low
   [ Scott Kittermann ]
   * Backported change from 0.95 of FLEVEL_DCONF to be able to re-enable
     signatures when security issues have been fixed.
+  * Fixed division by zero with --detect-broken (upstream #1335)
 
  -- Michael Tautschnig <mt at debian.org>  Fri, 03 Apr 2009 20:41:05 +0200
 
diff --git a/libclamav/pe.c b/libclamav/pe.c
index bc5f1ce..9ae0330 100644
--- a/libclamav/pe.c
+++ b/libclamav/pe.c
@@ -791,7 +791,7 @@ int cli_scanpe(int desc, cli_ctx *ctx)
 
 	cli_dbgmsg("------------------------------------\n");
 
-	if (DETECT_BROKEN && (exe_sections[i].urva % valign)) { /* Bad virtual alignment */
+	if (DETECT_BROKEN && (!valign || (exe_sections[i].urva % valign))) { /* Bad virtual alignment */
 	    cli_dbgmsg("VirtualAddress is misaligned\n");
 	    if(ctx->virname)
 	        *ctx->virname = "Broken.Executable";

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list