Update ZstdInflatingReadBuffer.cpp

This commit is contained in:
Kseniia Sumarokova 2021-07-15 17:58:58 +03:00 committed by GitHub
parent 435f6d3d92
commit 3303fe2fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,9 @@ bool ZstdInflatingReadBuffer::nextImpl()
} }
else if (output.pos == 0) else if (output.pos == 0)
{ {
/// It is possible, that input buffer is not at eof yet, but nothing was decompressed in current iteration.
/// But there are cases, when such behaviour is not allowed - i.e. if input buffer is not eof, then
/// it has to be guaranteed that working_buffer is not empty. So if it is empty, continue.
return nextImpl(); return nextImpl();
} }