Skip to content

Commit d8339cc

Browse files
committed
refactor: add parameter settings for BROTLI_DECODER_PARAM_LARGE_WINDOW to brotli_uncompress_init()
1 parent 337284e commit d8339cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

brotli.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,8 @@ static ZEND_FUNCTION(brotli_uncompress)
13691369
RETURN_FALSE;
13701370
}
13711371

1372+
BrotliDecoderSetParameter(state, BROTLI_DECODER_PARAM_LARGE_WINDOW, 1u);
1373+
13721374
size_t available_in = in_size;
13731375
const uint8_t *next_in = (const uint8_t *)in;
13741376
size_t buffer_size = PHP_BROTLI_BUFFER_SIZE;

0 commit comments

Comments
 (0)