Plug memory leak with large number of attachments

git-svn: trunk@632
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent de101a8255
commit 216315918b
  1. 6
      clamav-devel/ChangeLog
  2. 8
      clamav-devel/libclamav/mbox.c

@ -1,3 +1,9 @@
Thu Jun 24 22:38:16 BST 2004 (njh)
----------------------------------
* libclamav: Plug small memory leak when scanning emails with a large
number of attachments
Handle uuencoded files created with buggy software
Thu Jun 24 09:09:27 BST 2004 (trog)
-----------------------------------
* libclamav ole2_extract.[ch],scanners.c: proper file accounting (original patch

@ -17,6 +17,9 @@
*
* Change History:
* $Log: mbox.c,v $
* Revision 1.81 2004/06/24 21:36:38 nigelhorne
* Plug memory leak with large number of attachments
*
* Revision 1.80 2004/06/23 16:23:25 nigelhorne
* Further empty line optimisation
*
@ -228,7 +231,7 @@
* Compilable under SCO; removed duplicate code with message.c
*
*/
static char const rcsid[] = "$Id: mbox.c,v 1.80 2004/06/23 16:23:25 nigelhorne Exp $";
static char const rcsid[] = "$Id: mbox.c,v 1.81 2004/06/24 21:36:38 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -711,7 +714,7 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con
/* Pre-assertions */
if(nBlobs >= MAX_ATTACHMENTS) {
cli_warnmsg("Not all attachments will be scanned\n");
return 2;
/*return 2;*/
}
aText = textIn;
@ -1347,6 +1350,7 @@ parseEmailBody(message *messageIn, blob **blobsIn, int nBlobs, text *textIn, con
blobGetFilename(blobs[i]),
blobGetFilename(blobList[j]));
blobDestroy(blobs[i]);
blobs[i] = NULL;
}
}

Loading…
Cancel
Save