git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@196 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/01/23 17:54:18... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Fri Jan 23 08:52:49 GMT 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: Add detection of uuencoded viruses in single part |
|
4 |
+ multipart/mixed files |
|
5 |
+ |
|
1 | 6 |
Thu Jan 22 22:14:13 GMT 2004 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav: Prevent infinite recursion on broken uuencoded files |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.32 2004/01/23 08:51:19 nigelhorne |
|
21 |
+ * Add detection of uuencoded viruses in single part multipart/mixed files |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.31 2004/01/22 22:13:06 nigelhorne |
21 | 24 |
* Prevent infinite recursion on broken uuencoded files |
22 | 25 |
* |
... | ... |
@@ -84,7 +87,7 @@ |
84 | 84 |
* Compilable under SCO; removed duplicate code with message.c |
85 | 85 |
* |
86 | 86 |
*/ |
87 |
-static char const rcsid[] = "$Id: mbox.c,v 1.31 2004/01/22 22:13:06 nigelhorne Exp $"; |
|
87 |
+static char const rcsid[] = "$Id: mbox.c,v 1.32 2004/01/23 08:51:19 nigelhorne Exp $"; |
|
88 | 88 |
|
89 | 89 |
#ifndef CL_DEBUG |
90 | 90 |
/*#define NDEBUG /* map CLAMAV debug onto standard */ |
... | ... |
@@ -934,6 +937,10 @@ parseEmailBody(message *mainMessage, blob **blobsIn, int nBlobs, text *textIn, c |
934 | 934 |
*/ |
935 | 935 |
if(multiparts > 1) |
936 | 936 |
rc = parseEmailBody(mainMessage, blobList, numberOfAttachments, aText, dir, rfc821Table, subtypeTable); |
937 |
+ else if(numberOfAttachments == 1) { |
|
938 |
+ (void)saveFile(blobList[0], dir); |
|
939 |
+ blobDestroy(blobList[0]); |
|
940 |
+ } |
|
937 | 941 |
break; |
938 | 942 |
case DIGEST: |
939 | 943 |
/* |