mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2026-04-06 06:01:06 +00:00
The LZMA encoder was called with numThreads=8 at all 19 call sites, but LZMA only supports 1 or 2 (and _7ZIP_ST forces it to 1 anyway). Replace with LZMA_THREADS(ctx) macro that clamps ctx->num_threads to [1, 2], making the code say what it means and honoring the consumer's threading preference from the threads=N option.