diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-06-09 15:46:03 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-06-09 15:46:03 (GMT) |
commit | 135f11b54ea8e9c257d17514edc16d4a392a0659 (patch) | |
tree | 6c684e1483bca1d2fe7421c8ba51f57cc46f31c1 /programs/fuzzer.c | |
parent | 426e7437e10719b215dc5aeb46e48bcf90ae3831 (diff) | |
download | lz4-135f11b54ea8e9c257d17514edc16d4a392a0659.zip lz4-135f11b54ea8e9c257d17514edc16d4a392a0659.tar.gz lz4-135f11b54ea8e9c257d17514edc16d4a392a0659.tar.bz2 |
Obsolete "external allocation" functions
(convergence towards LZ4_compress_continue() )
Diffstat (limited to 'programs/fuzzer.c')
-rw-r--r-- | programs/fuzzer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/programs/fuzzer.c b/programs/fuzzer.c index 608340c..d209fd3 100644 --- a/programs/fuzzer.c +++ b/programs/fuzzer.c @@ -205,7 +205,7 @@ int FUZ_test(U32 seed, int nbCycles, int startCycle, double compressibility) { void* stateLZ4 = malloc(LZ4_sizeofState()); void* stateLZ4HC = malloc(LZ4_sizeofStateHC()); void* LZ4continue; - LZ4_dict_t LZ4dict; + LZ4_stream_t LZ4dict; U32 crcOrig, crcCheck; int displayRefresh; @@ -436,19 +436,19 @@ int FUZ_test(U32 seed, int nbCycles, int startCycle, double compressibility) { FUZ_DISPLAYTEST; dict -= 9; if (dict < (char*)CNBuffer) dict = (char*)CNBuffer; - memset(&LZ4dict, 0, sizeof(LZ4_dict_t)); + memset(&LZ4dict, 0, sizeof(LZ4_stream_t)); LZ4_loadDict(&LZ4dict, dict, dictSize); blockContinueCompressedSize = LZ4_compress_continue(&LZ4dict, block, compressedBuffer, blockSize); FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compress_usingDict failed"); FUZ_DISPLAYTEST; - memset(&LZ4dict, 0, sizeof(LZ4_dict_t)); + memset(&LZ4dict, 0, sizeof(LZ4_stream_t)); LZ4_loadDict(&LZ4dict, dict, dictSize); ret = LZ4_compress_limitedOutput_continue(&LZ4dict, block, compressedBuffer, blockSize, blockContinueCompressedSize-1); FUZ_CHECKTEST(ret>0, "LZ4_compress_limitedOutput_usingDict should fail : one missing byte for output buffer"); FUZ_DISPLAYTEST; - memset(&LZ4dict, 0, sizeof(LZ4_dict_t)); + memset(&LZ4dict, 0, sizeof(LZ4_stream_t)); LZ4_loadDict(&LZ4dict, dict, dictSize); ret = LZ4_compress_limitedOutput_continue(&LZ4dict, block, compressedBuffer, blockSize, blockContinueCompressedSize); FUZ_CHECKTEST(ret<=0, "LZ4_compress_limitedOutput_usingDict should work : enough size available within output buffer"); |