mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
MFH: Fixed bug #34321 (Possible crash in filter code).
This commit is contained in:
parent
57641c166f
commit
d696f11814
@ -868,7 +868,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;
|
||||
|
Loading…
Reference in New Issue
Block a user