cvs: /php3/functions imap.c
| From: | Charles Hagenbuch | Date: | Thu, 19 Aug 1999 17:01:42 +0000 |
| Subject: | cvs: /php3/functions imap.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10013@lists.php.net to get a copy of this message | ||
chagenbu Thu Aug 19 13:01:42 1999 EDT
Modified files:
/php3/functions imap.c
Log:
cjh: message sequence numbers are always 1 or greater. so let's just return false on invalid
input rather than segfaulting.
Index: php3/functions/imap.c
diff -u php3/functions/imap.c:1.67 php3/functions/imap.c:1.68
--- php3/functions/imap.c:1.67 Wed Aug 18 23:07:24 1999
+++ php3/functions/imap.c Thu Aug 19 13:01:42 1999
@@ -33,7 +33,7 @@
| Andrew Skalski <askalski@chek.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: imap.c,v 1.67 1999/08/19 03:07:24 rasmus Exp $ */
+/* $Id: imap.c,v 1.68 1999/08/19 17:01:42 chagenbu Exp $ */
#define IMAP41
@@ -2192,6 +2192,9 @@
convert_to_long( streamind );
convert_to_long( msgno );
+ if (msgno->value.lval < 1) {
+ RETURN_FALSE;
+ }
if(myargc == 3) convert_to_long(flags);
object_init(return_value);