git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@179 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/01/10 03:27:44... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Fri Jan 9 18:27:19 GMT 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: ParseMimeHeader could corrupt arg |
|
4 |
+ |
|
1 | 5 |
Fri Jan 9 18:01:28 GMT 2004 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav: Started handling BinHex code. For now only works with |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.29 2004/01/09 18:27:11 nigelhorne |
|
21 |
+ * ParseMimeHeader could corrupt arg |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.28 2004/01/09 15:07:42 nigelhorne |
21 | 24 |
* Re-engineered update 1.11 lost in recent changes |
22 | 25 |
* |
... | ... |
@@ -75,7 +78,7 @@ |
75 | 75 |
* Compilable under SCO; removed duplicate code with message.c |
76 | 76 |
* |
77 | 77 |
*/ |
78 |
-static char const rcsid[] = "$Id: mbox.c,v 1.28 2004/01/09 15:07:42 nigelhorne Exp $"; |
|
78 |
+static char const rcsid[] = "$Id: mbox.c,v 1.29 2004/01/09 18:27:11 nigelhorne Exp $"; |
|
79 | 79 |
|
80 | 80 |
#ifndef CL_DEBUG |
81 | 81 |
/*#define NDEBUG /* map CLAMAV debug onto standard */ |
... | ... |
@@ -1426,7 +1429,7 @@ parseMimeHeader(message *m, const char *cmd, const table_t *rfc821Table, const c |
1426 | 1426 |
cli_warnmsg("Content-type '/' received, assuming application/octet-stream\n"); |
1427 | 1427 |
messageSetMimeType(m, "application"); |
1428 | 1428 |
messageSetMimeSubtype(m, "octet-stream"); |
1429 |
- (void)strtok_r(arg, ";", &strptr); |
|
1429 |
+ strtok_r(copy, ";", &strptr); |
|
1430 | 1430 |
} else { |
1431 | 1431 |
char *s; |
1432 | 1432 |
|