mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
apply proper fix of bug #43793 to zlib.deflate (window+16 = gzip)
This commit is contained in:
parent
b5c4244069
commit
686f30d118
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
|
||||||
/* log-2 base of history window (9 - 15) */
|
/* log-2 base of history window (9 - 15) */
|
||||||
SEPARATE_ZVAL(tmpzval);
|
SEPARATE_ZVAL(tmpzval);
|
||||||
convert_to_long_ex(tmpzval);
|
convert_to_long_ex(tmpzval);
|
||||||
if (Z_LVAL_PP(tmpzval) < -MAX_WBITS || Z_LVAL_PP(tmpzval) > MAX_WBITS + 32) {
|
if (Z_LVAL_PP(tmpzval) < -MAX_WBITS || Z_LVAL_PP(tmpzval) > MAX_WBITS + 16) {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter give for window size. (%ld)", Z_LVAL_PP(tmpzval));
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter give for window size. (%ld)", Z_LVAL_PP(tmpzval));
|
||||||
} else {
|
} else {
|
||||||
windowBits = Z_LVAL_PP(tmpzval);
|
windowBits = Z_LVAL_PP(tmpzval);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue