httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r321426 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
Date Sat, 15 Oct 2005 18:34:04 GMT
Author: pquerna
Date: Sat Oct 15 11:34:02 2005
New Revision: 321426

URL: http://svn.apache.org/viewcvs?rev=321426&view=rev
Log:
Ensure that the mime subpart number passed in by a client is always > 0, so that we don't
go off the front of the array.

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

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c?rev=321426&r1=321425&r2=321426&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c Sat Oct 15 11:34:02 2005
@@ -963,7 +963,7 @@
 	    num = atoi(part);
 	}
 
-	if (mime_part &&
+	if (mime_part && num > 0 &&
 	    (num <= mime_part->sub_count) &&
 	    mime_part->sub[num - 1] &&
 	    mime_part->sub[num - 1]->body != NULL) {



Mime
View raw message