cvs: php4 /ext/standard filters.c
| From: | Moriyoshi Koizumi | Date: | Sun, 12 Jan 2003 13:46:11 +0000 |
| Subject: | cvs: php4 /ext/standard filters.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17841@lists.php.net to get a copy of this message | ||
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;