From 7716dcf9df7f457500cb657314e7a9aea5fedb06 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 10 Nov 2014 15:38:47 +0200 Subject: [PATCH] liblzma: Fix lzma_mt.preset in lzma_stream_encoder_mt_memusage(). It read the filter chain from a wrong variable. This is a similar bug that was fixed in 9494fb6d0ff41c585326f00aa8f7fe58f8106a5e. --- src/liblzma/common/stream_encoder_mt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/liblzma/common/stream_encoder_mt.c b/src/liblzma/common/stream_encoder_mt.c index 70fe247c..6188507f 100644 --- a/src/liblzma/common/stream_encoder_mt.c +++ b/src/liblzma/common/stream_encoder_mt.c @@ -1095,8 +1095,7 @@ lzma_stream_encoder_mt_memusage(const lzma_mt *options) const uint64_t inbuf_memusage = options->threads * block_size; // Memory usage of the filter encoders - uint64_t filters_memusage - = lzma_raw_encoder_memusage(options->filters); + uint64_t filters_memusage = lzma_raw_encoder_memusage(filters); if (filters_memusage == UINT64_MAX) return UINT64_MAX;