Fixed : ZBUFF_compressEnd() called multiple times with too small dst buffer (#206)
diff --git a/programs/zbufftest.c b/programs/zbufftest.c
index cdf3abe..3ff55fc 100644
--- a/programs/zbufftest.c
+++ b/programs/zbufftest.c
@@ -427,10 +427,9 @@
size_t dstBuffSize = MIN(cBufferSize - cSize, randomDstSize);
remainingToFlush = ZBUFF_compressEnd(zc, cBuffer+cSize, &dstBuffSize);
CHECK (ZBUFF_isError(remainingToFlush), "flush error : %s", ZBUFF_getErrorName(remainingToFlush));
- DISPLAY("flush %u bytes : still within context : %i \n", (U32)dstBuffSize, (int)remainingToFlush);
+ //DISPLAY("flush %u bytes : still within context : %i \n", (U32)dstBuffSize, (int)remainingToFlush);
cSize += dstBuffSize;
- }
- }
+ } }
crcOrig = XXH64_digest(&xxhState);
/* multi - fragments decompression test */