mirror of
https://git.tukaani.org/xz.git
synced 2026-10-31 11:24:56 +00:00
If lzma_stream was initialized using lzma_index_decoder() or lzma_file_info_decoder(), and lzma_memusage() was called after a few Records had already been decoded, the return value was too low because it was calculated based on the number of Records that haven't been decoded yet. So near the end of a big Index, the return value would be tiny compared to the actual memory usage. It worked correctly in the primary use case, that is, after LZMA_MEMLIMIT_ERROR. Thus, in practice this bug didn't matter much.