You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/10/15 20:34:04 UTC
svn commit: r321426 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_out.c
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) {