Browse code

Handle encoding type us-ascii - should be none

git-svn: trunk@1036

Nigel Horne authored on 2004/10/23 02:22:24
Showing 2 changed files
... ...
@@ -1,7 +1,13 @@
1
+Fri Oct 22 18:20:03 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav/message.c:	Handle broken messages which state
4
+			Content-Transfer-Encoding: us-ascii
5
+				reported by arny@arny.ro
6
+
1 7
 Fri Oct 22 16:57:13 BST 2004 (njh)
2 8
 ----------------------------------
3 9
   * libclamav/message.c:	If an unknown encoding type is found take
4
-  			a best guess for the decoder. If none can be guessed
10
+			a best guess for the decoder. If none can be guessed
5 11
 			invoke all decoders
6 12
 
7 13
 Thu Oct 21 11:14:35 BST 2004 (njh)
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.106  2004/10/22 17:18:13  nigelhorne
21
+ * Handle encoding type us-ascii - should be none
22
+ *
20 23
  * Revision 1.105  2004/10/22 15:53:45  nigelhorne
21 24
  * Fuzzy logic match for unknown encoding types
22 25
  *
... ...
@@ -312,7 +315,7 @@
312 312
  * uuencodebegin() no longer static
313 313
  *
314 314
  */
315
-static	char	const	rcsid[] = "$Id: message.c,v 1.105 2004/10/22 15:53:45 nigelhorne Exp $";
315
+static	char	const	rcsid[] = "$Id: message.c,v 1.106 2004/10/22 17:18:13 nigelhorne Exp $";
316 316
 
317 317
 #if HAVE_CONFIG_H
318 318
 #include "clamav-config.h"
... ...
@@ -392,6 +395,7 @@ static	const	struct	encoding_map {
392 392
 	{	"binary",		BINARY		},
393 393
 	{	"x-uuencode",		UUENCODE	},
394 394
 	{	"x-yencode",		YENCODE		},
395
+	{	"us-ascii",		NOENCODING	},	/* incorrect */
395 396
 	{	NULL,			NOENCODING	}
396 397
 };
397 398