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; }