httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From max...@apache.org
Subject svn commit: r376490 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
Date Thu, 09 Feb 2006 23:44:51 GMT
Author: maxime
Date: Thu Feb  9 15:44:49 2006
New Revision: 376490

URL: http://svn.apache.org/viewcvs?rev=376490&view=rev
Log:

* module-2.0/mod_mbox_mime.c:
  (mbox_mime_decode_multipart): remove useless and buggy body length
  computation leading to segfaults in content parsing and decoding
  functions.
  

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c?rev=376490&r1=376489&r2=376490&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c Thu Feb  9 15:44:49 2006
@@ -255,10 +255,6 @@
 		*inbound = '-';
 
 		search = inbound + strlen(boundary_line) + 1;
-
-		if (mail->sub[count-1] && mail->sub[count-1]->body) {
-		    mail->sub[count-1]->body_len = inbound - mail->sub[count-1]->body - 2;
-		}
 	    }
 
 	    /* Otherwise, the MIME part is finished. */



Mime
View raw message