Multipart headers: handle end of header lines that are not empty

git-svn: trunk@1770
remotes/push_mirror/metadata
Nigel Horne 20 years ago
parent e54b445e62
commit f1d57230d7
  1. 5
      clamav-devel/ChangeLog
  2. 15
      clamav-devel/libclamav/mbox.c

@ -1,3 +1,8 @@
Wed Nov 23 11:20:54 GMT 2005 (njh)
----------------------------------
* libclamav/mbox.c: Multipart headers: handle end of header lines that are
not empty
Tue Nov 22 12:45:35 CET 2005 (tk)
---------------------------------
* libclamav/zziplib/zzip-zip.c: enable pointer fix on TARGET_CPU_SPARC, too

@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
static char const rcsid[] = "$Id: mbox.c,v 1.261 2005/10/31 21:21:13 nigelhorne Exp $";
static char const rcsid[] = "$Id: mbox.c,v 1.262 2005/11/23 11:19:40 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -1828,6 +1828,19 @@ parseEmailBody(message *messageIn, text *textIn, const char *dir, const table_t
if(!isspace(data[0]))
break;
if(data[1] == '\0') {
/*
* Broken message: the
* blank line at the end
* of the headers isn't blank -
* it contains a space
*/
cli_dbgmsg("Multipart %d: headers not terminated by blank line\n",
multiparts);
inhead = FALSE;
break;
}
ptr = cli_realloc(fullline,
strlen(fullline) + strlen(data) + 1);

Loading…
Cancel
Save