Zstd: Fix infinite loop when input exhausted

pull/221/head
Jonathan G Rennison 3 years ago
parent ee7f5ad44f
commit 922e8554de

@ -2801,6 +2801,7 @@ struct ZSTDLoadFilter : LoadFilter {
if (this->input.pos == this->input.size) {
this->input.size = this->chain->Read(this->fread_buf, sizeof(this->fread_buf));
this->input.pos = 0;
if (this->input.size == 0) break;
}
size_t ret = ZSTD_decompressStream(this->zstd, &output, &this->input);

Loading…
Cancel
Save