moriyoshi Sun Jan 12 08:46:11 2003 EDT
Modified files:
/php4/ext/standard filters.c
Log:
Fixed infinite loop bug when an invalid quoted-printable escape sequence
appears in the streem.
Index: php4/ext/standard/filters.c
diff -u php4/ext/standard/filters.c:1.11 php4/ext/standard/filters.c:1.12
--- php4/ext/standard/filters.c:1.11 Sun Jan 12 08:41:35 2003
+++ php4/ext/standard/filters.c Sun Jan 12 08:46:11 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filters.c,v 1.11 2003/01/12 13:41:35 moriyoshi Exp $ */
+/* $Id: filters.c,v 1.12 2003/01/12 13:46:11 moriyoshi Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -675,7 +675,8 @@
unsigned int nbl = (*ps >= 'A' ? *ps - 0x37 : *ps -
0x30);
if (nbl > 15) {
- return 0;
+ err = PHP_CONV_ERR_INVALID_SEQ;
+ goto out;
}
v = (v << 4) | nbl;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php