zstreamtest can fuzztest pledgedSrcSize

This commit is contained in:
Yann Collet
2016-09-26 14:06:08 +02:00
parent 58d5dfea54
commit 2f2639438a
2 changed files with 11 additions and 8 deletions
+1
View File
@@ -1554,6 +1554,7 @@ size_t ZSTD_initDStream(ZSTD_DStream* zds)
size_t ZSTD_resetDStream(ZSTD_DStream* zds)
{
if (zds->ddict == NULL) return ERROR(stage_wrong); /* must be init at least once */
zds->stage = zdss_loadHeader;
zds->lhSize = zds->inPos = zds->outStart = zds->outEnd = 0;
zds->legacyVersion = 0;