aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-11-26 11:10:59 +0000
committerBill Wendling <isanbard@gmail.com>2013-11-26 11:10:59 +0000
commit2288cbca3e19488b492c4076e8f1259078c9208c (patch)
treeef0dfd9c32241be5a97ca916e74d86aae5ce9d61
parent7156084b4e1164031c8ab561cdb9ccee00c3df9f (diff)
Merging r195646:release_34
------------------------------------------------------------------------ r195646 | rengolin | 2013-11-25 07:00:27 -0800 (Mon, 25 Nov 2013) | 1 line Work-around for ClamAV uncertainty in test-suite ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/test-suite/branches/release_34@195738 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--MultiSource/Applications/ClamAV/clamscan.reference_output28
-rw-r--r--MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian28
-rw-r--r--MultiSource/Applications/ClamAV/libclamav_matcher-ac.c3
3 files changed, 2 insertions, 57 deletions
diff --git a/MultiSource/Applications/ClamAV/clamscan.reference_output b/MultiSource/Applications/ClamAV/clamscan.reference_output
index 5f9b943b..1cf8b525 100644
--- a/MultiSource/Applications/ClamAV/clamscan.reference_output
+++ b/MultiSource/Applications/ClamAV/clamscan.reference_output
@@ -283,8 +283,6 @@ CAB: Extracting file %s to %s, size %u
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -942,8 +940,6 @@ clamdoc.tar.gz: OK
Scanning clam.exe
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1035,8 +1031,6 @@ Zip: File decompressed to %s
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1303,12 +1297,8 @@ Open PowerPoint Document failed
Open WordDocument failed
-Matched signature for file type %s
-
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1404,8 +1394,6 @@ Decoding ole object
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1692,12 +1680,8 @@ Open PowerPoint Document failed
Open WordDocument failed
-Matched signature for file type %s
-
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1964,12 +1948,8 @@ Open PowerPoint Document failed
Open WordDocument failed
-Matched signature for file type %s
-
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -2320,12 +2300,8 @@ Open PowerPoint Document failed
Open WordDocument failed
-Matched signature for file type %s
-
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -2421,8 +2397,6 @@ Decoding ole object
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -2582,8 +2556,6 @@ Decoding ole object
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
diff --git a/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian b/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian
index f0ca6790..9aefbe58 100644
--- a/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian
+++ b/MultiSource/Applications/ClamAV/clamscan.reference_output.big-endian
@@ -281,8 +281,6 @@ CAB: Extracting file %s to %s, size %u
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -940,8 +938,6 @@ clamdoc.tar.gz: OK
Scanning clam.exe
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1033,8 +1029,6 @@ Zip: File decompressed to %s
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1301,12 +1295,8 @@ Open PowerPoint Document failed
Open WordDocument failed
-Matched signature for file type %s
-
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1402,8 +1392,6 @@ Decoding ole object
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1690,12 +1678,8 @@ Open PowerPoint Document failed
Open WordDocument failed
-Matched signature for file type %s
-
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -1962,12 +1946,8 @@ Open PowerPoint Document failed
Open WordDocument failed
-Matched signature for file type %s
-
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -2318,12 +2298,8 @@ Open PowerPoint Document failed
Open WordDocument failed
-Matched signature for file type %s
-
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -2419,8 +2395,6 @@ Decoding ole object
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
@@ -2580,8 +2554,6 @@ Decoding ole object
Recognized %s file
-Matched signature for file type %s
-
e_lfanew == %d
Machine type: 80386
diff --git a/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c b/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c
index 6b8a63f0..59a01b93 100644
--- a/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c
+++ b/MultiSource/Applications/ClamAV/libclamav_matcher-ac.c
@@ -634,7 +634,8 @@ int cli_ac_scanbuff(const unsigned char *buffer, uint32_t length, const char **v
if(pt->type) {
if(otfrec) {
if(pt->type > type || pt->type >= CL_TYPE_SFX || pt->type == CL_TYPE_MSEXE) {
- cli_dbgmsg("Matched signature for file type %s\n", pt->virname);
+ /* This debug message was causing trouble on the test-suite for being non-deterministic */
+ /*cli_dbgmsg("Matched signature for file type %s\n", pt->virname);*/
type = pt->type;
if(ftoffset && (!*ftoffset || (*ftoffset)->cnt < MAX_EMBEDDED_OBJ) && ((ftype == CL_TYPE_MSEXE && type >= CL_TYPE_SFX) || ((ftype == CL_TYPE_MSEXE || ftype == CL_TYPE_ZIP) && type == CL_TYPE_MSEXE))) {
/* FIXME: we don't know which offset of the first part is the correct one */