tests with ZSTD_setPledgedSrcSize

This commit is contained in:
inikep
2016-09-21 17:17:29 +02:00
parent 230a61fff2
commit 7e7925710d
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ ZWRAP_CCtx* ZWRAP_createCCtx(z_streamp strm)
memcpy(&zwc->customMem, &defaultCustomMem, sizeof(ZSTD_customMem));
}
zwc->pledgedSrcSize = 1<<16;
zwc->pledgedSrcSize = 0;
zwc->zbc = ZSTD_createCStream_advanced(zwc->customMem);
if (zwc->zbc == NULL) { ZWRAP_freeCCtx(zwc); return NULL; }
return zwc;