From 8146115c94c2202e95f8b3136e60e163fddde2dc Mon Sep 17 00:00:00 2001 From: jaycex Date: Tue, 22 Aug 2023 22:48:59 +0800 Subject: [PATCH] fix log loss when decoding with c impl tool --- mars/log/crypt/decode_log_file_c_impl/decode_log_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mars/log/crypt/decode_log_file_c_impl/decode_log_file.c b/mars/log/crypt/decode_log_file_c_impl/decode_log_file.c index ce889822a..c54fea463 100644 --- a/mars/log/crypt/decode_log_file_c_impl/decode_log_file.c +++ b/mars/log/crypt/decode_log_file_c_impl/decode_log_file.c @@ -255,7 +255,7 @@ bool zstdDecompress(const char* compressedBytes, size_t compressedBytesSize, cha } lastPos = output.pos; - if (input.pos == input.size) + if (input.pos == input.size && output.pos < output.size) { done = true; }