From a88173bf86c908c7043ccb8418c53e1b6080a472 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sun, 12 Jan 2003 13:46:11 +0000 Subject: [PATCH] Fixed infinite loop bug when an invalid quoted-printable escape sequence appears in the streem. --- ext/standard/filters.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/standard/filters.c b/ext/standard/filters.c index 99b377e18b..be7346fc2e 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -675,7 +675,8 @@ static php_conv_err_t php_conv_qprint_decode_convert(php_conv_qprint_decode *ins 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; -- 2.50.1