CVS update: php3/functions

From: Date: Fri, 04 Sep 1998 18:50:22 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-809@lists.php.net to get a copy of this message
Date: Friday September 4, 1998 @ 14:50 Author: rasmus Update of /repository/php3/functions In directory asf:/export/home/rasmus/php3/functions Modified Files: imap.c Log Message: sort criteria in imap_sort is not a bitmask. Fix docs and add a check to make sure the search criteria is valid to avoid a c-client core dump Index: php3/functions/imap.c diff -c php3/functions/imap.c:1.33 php3/functions/imap.c:1.34 *** php3/functions/imap.c:1.33 Fri Sep 4 14:10:26 1998 --- php3/functions/imap.c Fri Sep 4 14:50:22 1998 *************** *** 31,37 **** | Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ ! /* $Id: imap.c,v 1.33 1998/09/04 18:10:26 rasmus Exp $ */ #define IMAP41 --- 31,37 ---- | Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ ! /* $Id: imap.c,v 1.34 1998/09/04 18:50:22 rasmus Exp $ */ #define IMAP41 *************** *** 1729,1734 **** --- 1729,1738 ---- convert_to_long(streamind); convert_to_long(rev); convert_to_long(pgm); + if(pgm>SORTSIZE) { + php3_error(E_WARNING, "Unrecognized sort criteria"); + RETURN_FALSE; + } if(myargc==4) convert_to_long(flags); ind = streamind->value.lval; -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#809) next »