From be1a54f3f7b19221fc6b48855c971b4386e34edf Mon Sep 17 00:00:00 2001 From: "jinfeihan57@gmail.com" Date: Mon, 28 Dec 2020 21:10:01 +0800 Subject: [PATCH] fix lz4 4M bug --- C/zstdmt/lz4-mt_decompress.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/C/zstdmt/lz4-mt_decompress.c b/C/zstdmt/lz4-mt_decompress.c index 429357b87..b40ba77d6 100644 --- a/C/zstdmt/lz4-mt_decompress.c +++ b/C/zstdmt/lz4-mt_decompress.c @@ -469,8 +469,12 @@ static size_t st_decompress(void *arg) } } - if (nextToLoad == 0) + // if (nextToLoad == 0) + // break; + if (out->size == 0 && remaining ==0){ + nextToLoad = ctx->inputsize; break; + } pos += remaining; }