diff --git a/clamav-devel/ChangeLog b/clamav-devel/ChangeLog index 661825136..6f3736d3c 100644 --- a/clamav-devel/ChangeLog +++ b/clamav-devel/ChangeLog @@ -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) ---------------------------------- * libclamav/pdf.c: Fix problem with munmap not unmapping all the area, diff --git a/clamav-devel/libclamav/message.c b/clamav-devel/libclamav/message.c index c375c5679..de05470b1 100644 --- a/clamav-devel/libclamav/message.c +++ b/clamav-devel/libclamav/message.c @@ -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: 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 #include "clamav-config.h" @@ -359,7 +359,8 @@ messageSetDispositionType(message *m, const char *disptype) m->mimeDispositionType = strdup(disptype); if(m->mimeDispositionType) strstrip(m->mimeDispositionType); - } + } else + m->mimeDispositionType = NULL; } const char *