Better handling of more than one disposition type in an email

git-svn: trunk@1548
remotes/push_mirror/metadata
Nigel Horne 20 years ago
parent 9b1e1206cf
commit 2ece6169fe
  1. 8
      clamav-devel/ChangeLog
  2. 5
      clamav-devel/libclamav/message.c

@ -1,3 +1,11 @@
Sun May 15 16:47:48 BST 2005 (njh)
----------------------------------
* libclamav/message.c: Fixed a problem where an email with more
than one content-disposition type line,
one or more of which was empty, could
crash libclamav. Reported by arnaud at
clamav.net.
Sat May 14 17:14:52 BST 2005 (njh) Sat May 14 17:14:52 BST 2005 (njh)
---------------------------------- ----------------------------------
* libclamav/pdf.c: Fix problem with munmap not unmapping all the area, * libclamav/pdf.c: Fix problem with munmap not unmapping all the area,

@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
static char const rcsid[] = "$Id: message.c,v 1.155 2005/05/11 15:22:17 nigelhorne Exp $"; static char const rcsid[] = "$Id: message.c,v 1.156 2005/05/15 15:46:12 nigelhorne Exp $";
#if HAVE_CONFIG_H #if HAVE_CONFIG_H
#include "clamav-config.h" #include "clamav-config.h"
@ -359,7 +359,8 @@ messageSetDispositionType(message *m, const char *disptype)
m->mimeDispositionType = strdup(disptype); m->mimeDispositionType = strdup(disptype);
if(m->mimeDispositionType) if(m->mimeDispositionType)
strstrip(m->mimeDispositionType); strstrip(m->mimeDispositionType);
} } else
m->mimeDispositionType = NULL;
} }
const char * const char *

Loading…
Cancel
Save