From: Ilia Alshanetsky Date: Sun, 25 Sep 2005 13:26:19 +0000 (+0000) Subject: Fixed bug #34321 (Possible crash in filter code). X-Git-Tag: RELEASE_0_9_0~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e37a621f8e5b2aa9289acb6930c6e3156621654;p=php Fixed bug #34321 (Possible crash in filter code). --- diff --git a/ext/standard/filters.c b/ext/standard/filters.c index 27cdf06222..5a4ef15a95 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -943,7 +943,7 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); } } else if ((!(opts & PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST) || line_ccnt < inst->line_len) && ((c >= 33 && c <= 60) || (c >= 62 && c <= 126))) { - if (line_ccnt < 2) { + if (line_ccnt < 2 && inst->lbchars != NULL) { if (ocnt < inst->lbchars_len + 1) { err = PHP_CONV_ERR_TOO_BIG; break;