Handle broken RFC2047 headers

git-svn: trunk@1238
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent d50680bd29
commit 8ebe8dbc7f
  1. 4
      clamav-devel/ChangeLog
  2. 10
      clamav-devel/libclamav/mbox.c

@ -1,3 +1,7 @@
Sun Jan 9 11:38:39 GMT 2005 (njh)
----------------------------------
* liclamav/mbox.c: Add support for messages that break RFC2047
Sat Jan 8 03:50:51 CET 2005 (tk)
---------------------------------
* aclocal.m4/configure: Add support for x86_64 (patch by Gwenole Beauchesne

@ -17,6 +17,9 @@
*
* Change History:
* $Log: mbox.c,v $
* Revision 1.209 2005/01/09 11:37:02 nigelhorne
* Handle broken RFC2047 headers
*
* Revision 1.208 2005/01/07 13:48:46 nigelhorne
* Save content-type: application only once
*
@ -612,7 +615,7 @@
* Compilable under SCO; removed duplicate code with message.c
*
*/
static char const rcsid[] = "$Id: mbox.c,v 1.208 2005/01/07 13:48:46 nigelhorne Exp $";
static char const rcsid[] = "$Id: mbox.c,v 1.209 2005/01/09 11:37:02 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -1784,7 +1787,8 @@ parseEmailHeader(message *m, const char *line, const table_t *rfc821)
copy = rfc2047(line);
if(copy == NULL)
return -1;
/* an RFC checker would return -1 here */
copy = strdup(line);
tokenseparater[0] = *separater;
tokenseparater[1] = '\0';
@ -3485,7 +3489,7 @@ rfc2047(const char *in)
encoding = tolower(encoding);
if((encoding != 'q') && (encoding != 'b')) {
cli_warnmsg("Unsupported RFC2047 encoding type '%c' - if you believe this file contains a virus, report it to bugs@clamav.net\n", encoding);
cli_warnmsg("Unsupported RFC2047 encoding type '%c' - if you believe this file contains a virus that was missed, report it to bugs@clamav.net\n", encoding);
free(out);
out = NULL;
break;

Loading…
Cancel
Save