git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1353 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2005/02/19 06:30:30... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Fri Feb 18 21:29:16 GMT 2005 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/message.c: Handle broken RFC2231 messages reported by Maxim |
|
4 |
+ Dounin <mdounin at rambler-co.ru> |
|
5 |
+ |
|
1 | 6 |
Fri Feb 18 18:04:30 GMT 2005 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/mbox.c: Save separate bounces in separate files |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: message.c,v $ |
20 |
+ * Revision 1.144 2005/02/18 21:27:26 nigelhorne |
|
21 |
+ * Handle broken RFC2231 messages |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.143 2005/02/13 09:31:36 nigelhorne |
21 | 24 |
* Some lines wouldn't uudecode correctly |
22 | 25 |
* |
... | ... |
@@ -426,7 +429,7 @@ |
426 | 426 |
* uuencodebegin() no longer static |
427 | 427 |
* |
428 | 428 |
*/ |
429 |
-static char const rcsid[] = "$Id: message.c,v 1.143 2005/02/13 09:31:36 nigelhorne Exp $"; |
|
429 |
+static char const rcsid[] = "$Id: message.c,v 1.144 2005/02/18 21:27:26 nigelhorne Exp $"; |
|
430 | 430 |
|
431 | 431 |
#if HAVE_CONFIG_H |
432 | 432 |
#include "clamav-config.h" |
... | ... |
@@ -2832,7 +2835,8 @@ rfc2231(const char *in) |
2832 | 2832 |
} else |
2833 | 2833 |
*out++ = *in; |
2834 | 2834 |
} |
2835 |
- in++; |
|
2835 |
+ if(*in++ == '\0') |
|
2836 |
+ break; |
|
2836 | 2837 |
} |
2837 | 2838 |
|
2838 | 2839 |
if(field != CONTENTS) { |