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


The following commit has been merged in the debian/unstable branch:
commit f60c59a471882c307d8474ea3ebb22b58456510d
Author: Török Edvin <edwin at clamav.net>
Date:   Wed Mar 10 11:44:30 2010 +0200

    bb #1800.

diff --git a/libclamav/c++/bytecode2llvm.cpp b/libclamav/c++/bytecode2llvm.cpp
index a5508e0..19a042e 100644
--- a/libclamav/c++/bytecode2llvm.cpp
+++ b/libclamav/c++/bytecode2llvm.cpp
@@ -57,7 +57,6 @@
 #include "llvm/Analysis/Verifier.h"
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/System/ThreadLocal.h"
-#include "dconf.h"
 #include <cstdlib>
 #include <csetjmp>
 #include <new>
@@ -77,8 +76,10 @@
 #undef PACKAGE_STRING
 #undef PACKAGE_TARNAME
 #undef PACKAGE_VERSION
+#undef PACKAGE_URL
 #include "clamav-config.h"
 #endif
+#include "dconf.h"
 #include "clamav.h"
 #include "clambc.h"
 #include "bytecode.h"
@@ -258,7 +259,10 @@ public:
 		    break;
 		}
 		case DPointerType:
-		    Ty = PointerType::getUnqual(Elts[0]);
+		    if (!PointerType::isValidElementType(Elts[0]))
+			Ty = PointerType::getUnqual(Type::getInt8Ty(Context));
+		    else
+			Ty = PointerType::getUnqual(Elts[0]);
 		    break;
 		case DStructType:
 		    Ty = StructType::get(Context, Elts);
@@ -651,7 +655,6 @@ public:
 	    Functions[j]->setCallingConv(CallingConv::Fast);
 	}
 	const Type *I32Ty = Type::getInt32Ty(Context);
-	const Type *I64Ty = Type::getInt64Ty(Context);
 	if (!bc->trusted)
 	    PM.add(createClamBCRTChecks());
 	for (unsigned j=0;j<bc->num_func;j++) {

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list