|
|
|
@ -250,7 +250,9 @@ struct qtmd_stream *qtmd_init(struct mspack_system *system, |
|
|
|
if (!system) return NULL; |
|
|
|
if (!system) return NULL; |
|
|
|
|
|
|
|
|
|
|
|
/* Quantum supports window sizes of 2^10 (1Kb) through 2^21 (2Mb) */ |
|
|
|
/* Quantum supports window sizes of 2^10 (1Kb) through 2^21 (2Mb) */ |
|
|
|
if (window_bits < 10 || window_bits > 21) return NULL; |
|
|
|
|
|
|
|
|
|
|
|
/* tk: temporary fix: only process 32KB+ window sizes */ |
|
|
|
|
|
|
|
if (window_bits < 15 || window_bits > 21) return NULL; |
|
|
|
|
|
|
|
|
|
|
|
input_buffer_size = (input_buffer_size + 1) & -2; |
|
|
|
input_buffer_size = (input_buffer_size + 1) & -2; |
|
|
|
if (input_buffer_size < 2) return NULL; |
|
|
|
if (input_buffer_size < 2) return NULL; |
|
|
|
|