Lines Matching full:0
111 static clock_t g_time = 0; in FUZ_displayUpdate()
127 unsigned nbBits = 0; in FUZ_highbit32()
128 if (v32==0) return 0; in FUZ_highbit32()
149 size_t pos = 0; in FUZ_fillCompressibleNoiseBuffer()
186 int nbBuff=0; in FUZ_AddressOverflow()
187 int highAddress = 0; in FUZ_AddressOverflow()
195 return 0; in FUZ_AddressOverflow()
198 buffers[0] = (char*)malloc(BLOCKSIZE_I134); in FUZ_AddressOverflow()
200 if ((!buffers[0]) || (!buffers[1])) { in FUZ_AddressOverflow()
201 free(buffers[0]); free(buffers[1]); in FUZ_AddressOverflow()
203 return 0; in FUZ_AddressOverflow()
211 if (((uintptr_t)buffers[nbBuff] > (uintptr_t)0x80000000) && (!highAddress)) { in FUZ_AddressOverflow()
222 input[0] = (char)0xF0; /* Literal length overflow */ in FUZ_AddressOverflow()
223 input[1] = (char)0xFF; in FUZ_AddressOverflow()
224 input[2] = (char)0xFF; in FUZ_AddressOverflow()
225 input[3] = (char)0xFF; in FUZ_AddressOverflow()
226 { int u; for(u = 4; u <= nbOf255+4; u++) input[u] = (char)0xff; } in FUZ_AddressOverflow()
228 if (r>0) { DISPLAY("LZ4_decompress_safe = %i \n", r); goto _overflowError; } in FUZ_AddressOverflow()
229 input[0] = (char)0x1F; /* Match length overflow */ in FUZ_AddressOverflow()
230 input[1] = (char)0x01; in FUZ_AddressOverflow()
231 input[2] = (char)0x01; in FUZ_AddressOverflow()
232 input[3] = (char)0x00; in FUZ_AddressOverflow()
234 if (r>0) { DISPLAY("LZ4_decompress_safe = %i \n", r); goto _overflowError; } in FUZ_AddressOverflow()
237 input[0] = (char)0xF0; /* Literal length overflow */ in FUZ_AddressOverflow()
238 input[1] = (char)0xFF; in FUZ_AddressOverflow()
239 input[2] = (char)0xFF; in FUZ_AddressOverflow()
240 input[3] = (char)0xFF; in FUZ_AddressOverflow()
242 if (r>0) goto _overflowError; in FUZ_AddressOverflow()
243 input[0] = (char)0x1F; /* Match length overflow */ in FUZ_AddressOverflow()
244 input[1] = (char)0x01; in FUZ_AddressOverflow()
245 input[2] = (char)0x01; in FUZ_AddressOverflow()
246 input[3] = (char)0x00; in FUZ_AddressOverflow()
248 if (r>0) goto _overflowError; in FUZ_AddressOverflow()
254 { int i; for (i=0 ; i<nbBuff; i++) free(buffers[i]); } in FUZ_AddressOverflow()
257 return 0; in FUZ_AddressOverflow()
269 void* const lowBuff = mmap((void*)(0x1000), size, in FUZ_createLowAddr()
271 -1, 0); in FUZ_createLowAddr()
310 size_t u = 0; in FUZ_findDiff()
318 unsigned long long bytes = 0; in FUZ_test()
319 unsigned long long cbytes = 0; in FUZ_test()
320 unsigned long long hcbytes = 0; in FUZ_test()
321 unsigned long long ccbytes = 0; in FUZ_test()
335 int result = 0; in FUZ_test()
367 for (cycleNb = 0; cycleNb < startCycle; cycleNb++) in FUZ_test()
374 U32 testNb = 0; in FUZ_test()
385 U32 const crcOrig = XXH32(block, (size_t)blockSize, 0); in FUZ_test()
408 if (targetSize>0) { in FUZ_test()
410 U32 const crcBase = XXH32(block, (size_t)srcSize, 0); in FUZ_test()
412 FUZ_CHECKTEST((cSize==0), "LZ4_compress_destSize() compression failed"); in FUZ_test()
416 …FUZ_CHECKTEST(dSize<0, "LZ4_decompress_safe() failed on data compressed by LZ4_compress_destSize"); in FUZ_test()
420 { U32 const crcDec = XXH32(decodedBuffer, (size_t)srcSize, 0); in FUZ_test()
441 if (targetSize>0) { in FUZ_test()
443 U32 const crcBase = XXH32(block, (size_t)srcSize, 0); in FUZ_test()
445 FUZ_CHECKTEST((cSize==0), "LZ4_compress_HC_destSize() compression failed"); in FUZ_test()
449 …FUZ_CHECKTEST(dSize<0, "LZ4_decompress_safe failed (%i) on data compressed by LZ4_compressHC_destS… in FUZ_test()
453 { U32 const crcDec = XXH32(decodedBuffer, (size_t)srcSize, 0); in FUZ_test()
462 FUZ_CHECKTEST(HCcompressedSize==0, "LZ4_compress_HC() failed"); in FUZ_test()
467 FUZ_CHECKTEST(r==0, "LZ4_compress_HC_extStateHC() failed") in FUZ_test()
473 FUZ_CHECKTEST(r==0, "LZ4_compress_HC_extStateHC_fastReset() failed"); in FUZ_test()
479 FUZ_CHECKTEST(r==0, "LZ4_compress_fast_extState() failed"); } in FUZ_test()
484 FUZ_CHECKTEST(r==0, "LZ4_compress_fast_extState_fastReset() failed"); } in FUZ_test()
489 FUZ_CHECKTEST(compressedSize<=0, "LZ4_compress_default() failed"); in FUZ_test()
502 FUZ_CHECKTEST(r<0, "LZ4_decompress_fast failed despite correct space"); in FUZ_test()
505 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
511 decodedBuffer[blockSize-1] = 0; in FUZ_test()
513 … FUZ_CHECKTEST(r>=0, "LZ4_decompress_fast should have failed, due to Output Size being too small"); in FUZ_test()
515 …FUZ_CHECKTEST(decodedBuffer[blockSize-1]!=0, "LZ4_decompress_fast overrun specified output buffer"… in FUZ_test()
520 … FUZ_CHECKTEST(r>=0, "LZ4_decompress_fast should have failed, due to Output Size being too large"); in FUZ_test()
525 decodedBuffer[blockSize] = 0; in FUZ_test()
527 FUZ_CHECKTEST(r<0, "LZ4_decompress_safe failed despite sufficient space"); in FUZ_test()
531 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
537 decodedBuffer[blockSize] = 0; in FUZ_test()
538 decodedBuffer[blockSize+1] = 0; in FUZ_test()
540 FUZ_CHECKTEST(r<0, "LZ4_decompress_safe failed despite amply sufficient space"); in FUZ_test()
544 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
550 decodedBuffer[blockSize-1] = 0; in FUZ_test()
552 …FUZ_CHECKTEST(r>=0, "LZ4_decompress_safe should have failed, due to Output Size being one byte too… in FUZ_test()
559 decodedBuffer[blockSize-10] = 0; in FUZ_test()
561 …FUZ_CHECKTEST(r>=0, "LZ4_decompress_safe should have failed, due to Output Size being 10 bytes too… in FUZ_test()
570 size_t pos = 0; in FUZ_test()
581 U32 const nbBits = nbBitsCodes ? nbBitsCodes-1 : 0; in FUZ_test()
592 { U32 const endMark = 0xA9B1C3D6; in FUZ_test()
608 …FUZ_CHECKTEST(r>=0, "LZ4_decompress_safe should have failed, due to input size being one byte too … in FUZ_test()
613 decodedBuffer[blockSize] = 0; in FUZ_test()
615 … FUZ_CHECKTEST(r>=0, "LZ4_decompress_safe should have failed, due to input size being too large"); in FUZ_test()
625 char const sentinel = decodedBuffer[targetSize] = block[targetSize] ^ 0x5A; in FUZ_test()
627 …FUZ_CHECKTEST(decResult<0, "LZ4_decompress_safe_partial failed despite valid input data (error:%i)… in FUZ_test()
638 FUZ_CHECKTEST(ret==0, "LZ4_compress_default() failed despite sufficient space"); in FUZ_test()
643 FUZ_CHECKTEST(ret==0, "LZ4_compress_fast_extState() failed despite sufficient space"); in FUZ_test()
648 FUZ_CHECKTEST(ret==0, "LZ4_compress_HC() failed despite sufficient space"); in FUZ_test()
653 FUZ_CHECKTEST(ret==0, "LZ4_compress_HC_extStateHC() failed despite sufficient space"); in FUZ_test()
657 { int missingBytes = (FUZ_rand(&randState) % 0x3F) + 1; in FUZ_test()
659 missingBytes += !missingBytes; /* avoid special case missingBytes==0 */ in FUZ_test()
660 compressedBuffer[compressedSize-missingBytes] = 0; in FUZ_test()
669 { int missingBytes = (FUZ_rand(&randState) % 0x3F) + 1; in FUZ_test()
671 missingBytes += !missingBytes; /* avoid special case missingBytes==0 */ in FUZ_test()
672 compressedBuffer[HCcompressedSize-missingBytes] = 0; in FUZ_test()
690 FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compress_fast_continue failed"); in FUZ_test()
698 { U32 const crcCheck = XXH32(decodedBuffer+dictSize, (size_t)blockSize, 0); in FUZ_test()
707 { U32 const crcCheck = XXH32(decodedBuffer+dictSize, (size_t)blockSize, 0); in FUZ_test()
713 …dict -= (size_t)(FUZ_rand(&randState) & 0xF) + 1; /* create space, so now dictionary is an ExtDi… in FUZ_test()
717 FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compress_fast_continue failed"); in FUZ_test()
722 …FUZ_CHECKTEST(ret>0, "LZ4_compress_fast_continue using ExtDict should fail : one missing byte for … in FUZ_test()
730 …FUZ_CHECKTEST(ret<=0, "LZ4_compress_fast_continue should work : enough size available within outpu… in FUZ_test()
736 decodedBuffer[blockSize] = 0; in FUZ_test()
740 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
747 decodedBuffer[blockSize] = 0; in FUZ_test()
751 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
756 decodedBuffer[blockSize-1] = 0; in FUZ_test()
758 …FUZ_CHECKTEST(ret>=0, "LZ4_decompress_fast_usingDict should have failed : wrong original size (-1 … in FUZ_test()
762 decodedBuffer[blockSize-1] = 0; in FUZ_test()
764 …FUZ_CHECKTEST(ret>=0, "LZ4_decompress_safe_usingDict should have failed : not enough output size (… in FUZ_test()
768 { int const missingBytes = (FUZ_rand(&randState) & 0xF) + 2; in FUZ_test()
770 decodedBuffer[blockSize-missingBytes] = 0; in FUZ_test()
772 …FUZ_CHECKTEST(ret>=0, "LZ4_decompress_safe_usingDict should have failed : output buffer too small … in FUZ_test()
784 …FUZ_CHECKTEST(expectedSize<=0, "LZ4_compress_fast_continue reference compression for extDictCtx sh… in FUZ_test()
785 expectedCrc = XXH32(compressedBuffer, (size_t)expectedSize, 0); in FUZ_test()
792 …FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compress_fast_continue using extDictCtx failed"… in FUZ_test()
800 …FUZ_CHECKTEST(XXH32(compressedBuffer, (size_t)blockContinueCompressedSize, 0) != expectedCrc, "LZ4… in FUZ_test()
806 …FUZ_CHECKTEST(ret>0, "LZ4_compress_fast_continue using extDictCtx should fail : one missing byte f… in FUZ_test()
814 …FUZ_CHECKTEST(ret<=0, "LZ4_compress_fast_continue using extDictCtx should work : enough size avail… in FUZ_test()
816 …FUZ_CHECKTEST(XXH32(compressedBuffer, (size_t)ret, 0) != expectedCrc, "LZ4_compress_fast_continue … in FUZ_test()
823 …FUZ_CHECKTEST(ret<=0, "LZ4_compress_fast_continue using extDictCtx with re-used context should wor… in FUZ_test()
825 …FUZ_CHECKTEST(XXH32(compressedBuffer, (size_t)ret, 0) != expectedCrc, "LZ4_compress_fast_continue … in FUZ_test()
830 decodedBuffer[blockSize] = 0; in FUZ_test()
834 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
841 decodedBuffer[blockSize] = 0; in FUZ_test()
845 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
850 decodedBuffer[blockSize-1] = 0; in FUZ_test()
852 …FUZ_CHECKTEST(ret>=0, "LZ4_decompress_fast_usingDict should have failed : wrong original size (-1 … in FUZ_test()
856 decodedBuffer[blockSize-1] = 0; in FUZ_test()
858 …FUZ_CHECKTEST(ret>=0, "LZ4_decompress_safe_usingDict should have failed : not enough output size (… in FUZ_test()
862 { int const missingBytes = (FUZ_rand(&randState) & 0xF) + 2; in FUZ_test()
864 decodedBuffer[blockSize-missingBytes] = 0; in FUZ_test()
866 …FUZ_CHECKTEST(ret>=0, "LZ4_decompress_safe_usingDict should have failed : output buffer too small … in FUZ_test()
877 FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compress_HC_continue failed"); in FUZ_test()
883 …FUZ_CHECKTEST(ret>0, "LZ4_compress_HC_continue using ExtDict should fail : one missing byte for ou… in FUZ_test()
890 …FUZ_CHECKTEST(ret<=0, "LZ4_compress_HC_continue should work : enough size available within output … in FUZ_test()
894 decodedBuffer[blockSize] = 0; in FUZ_test()
898 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
912 … FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compress_HC_continue with ExtDictCtx failed"); in FUZ_test()
919 …FUZ_CHECKTEST(ret>0, "LZ4_compress_HC_continue using ExtDictCtx should fail : one missing byte for… in FUZ_test()
927 …FUZ_CHECKTEST(ret<=0, "LZ4_compress_HC_continue using ExtDictCtx should work : enough size availab… in FUZ_test()
936 …FUZ_CHECKTEST(ret<=0, "LZ4_compress_HC_continue using ExtDictCtx and fast reset should work : enou… in FUZ_test()
943 decodedBuffer[blockSize] = 0; in FUZ_test()
947 { U32 const crcCheck = XXH32(decodedBuffer, (size_t)blockSize, 0); in FUZ_test()
963 … FUZ_CHECKTEST(blockContinueCompressedSize==0, "LZ4_compress_HC_continue_destSize failed"); in FUZ_test()
968 decodedBuffer[consumedSize] = 0; in FUZ_test()
972 { U32 const crcSrc = XXH32(block, (size_t)consumedSize, 0); in FUZ_test()
973 U32 const crcDst = XXH32(decodedBuffer, (size_t)consumedSize, 0); in FUZ_test()
982 assert(blockSize >= 0); in FUZ_test()
984 assert(compressedSize >= 0); in FUZ_test()
986 assert(HCcompressedSize >= 0); in FUZ_test()
988 assert(blockContinueCompressedSize >= 0); in FUZ_test()
993 bytes += !bytes; /* avoid division by 0 */ in FUZ_test()
1018 const unsigned testNb = 0; in FUZ_unitTests()
1019 const unsigned seed = 0; in FUZ_unitTests()
1020 const unsigned cycleNb= 0; in FUZ_unitTests()
1024 char ringBuffer[ringBufferSize] = {0}; in FUZ_unitTests()
1038 LZ4_decompress_safe(testCompressed, testVerify, 0, testInputSize); in FUZ_unitTests()
1042 { char const tmp = (char)0xFF; in FUZ_unitTests()
1052 *tmp = (char)0xEE; in FUZ_unitTests()
1053 memset(tmp + 1, 0, 14); in FUZ_unitTests()
1055 tmp[16] = 0; in FUZ_unitTests()
1057 FUZ_CHECKTEST(r >= 0, "LZ4_decompress_safe() should fail"); in FUZ_unitTests()
1063 { int const maxCSize = LZ4_compressBound(0); in FUZ_unitTests()
1064 int const cSize = LZ4_compress_default(NULL, testCompressed, 0, maxCSize); in FUZ_unitTests()
1065 FUZ_CHECKTEST(!(cSize==1 && testCompressed[0]==0), in FUZ_unitTests()
1066 "compressing empty should give byte 0" in FUZ_unitTests()
1067 " (maxCSize == %i) (cSize == %i) (byte == 0x%02X)", in FUZ_unitTests()
1068 maxCSize, cSize, testCompressed[0]); in FUZ_unitTests()
1073 { int const cSize = LZ4_compress_default(NULL, NULL, 0, 0); in FUZ_unitTests()
1074 FUZ_CHECKTEST(cSize != 0, in FUZ_unitTests()
1076 " (cSize == %i != 0)", cSize); in FUZ_unitTests()
1087 XXH32_hash_t const crcOrig = XXH32(testInput, sampleSize, 0); in FUZ_unitTests()
1093 assert(cSize != 0); /* ensure compression is successful */ in FUZ_unitTests()
1099 { XXH32_hash_t const crcCheck = XXH32(testVerify, (size_t)dSize, 0); in FUZ_unitTests()
1109 … memset(testInput, 0, 267); /* calculated exactly so that compressedSize == originalSize-1 */ in FUZ_unitTests()
1111 { XXH64_hash_t const crcOrig = XXH64(testInput, sampleSize, 0); in FUZ_unitTests()
1123 { XXH64_hash_t const crcCheck = XXH64(testVerify, (size_t)dSize, 0); in FUZ_unitTests()
1137 memset(shc, 0, sizeof(*shc)); in FUZ_unitTests()
1138 DISPLAYLEVEL(4, "state1(%p) state2(%p) state3(%p) LZ4_stream_t size(0x%x): ", in FUZ_unitTests()
1161 FUZ_CHECKTEST(cs==0, "LZ4_compress_fast_continue() compression failed!"); in FUZ_unitTests()
1165 { U64 const crcOrig = XXH64(testInput, testCompressedSize, 0); in FUZ_unitTests()
1166 U64 const crcNew = XXH64(testVerify, testCompressedSize, 0); in FUZ_unitTests()
1176 FUZ_CHECKTEST( LZ4_saveDict(ctx, NULL, 0) != 0, in FUZ_unitTests()
1177 "LZ4_saveDict() can't save anything into (NULL,0)"); in FUZ_unitTests()
1180 { char tmp_buffer[240] = { 0 }; in FUZ_unitTests()
1181 FUZ_CHECKTEST( LZ4_saveDict(ctx, tmp_buffer, sizeof(tmp_buffer)) != 0, in FUZ_unitTests()
1193 U32 iNext = 0; in FUZ_unitTests()
1194 U32 rNext = 0; in FUZ_unitTests()
1195 U32 dNext = 0; in FUZ_unitTests()
1198 XXH64_reset(&xxhOrig, 0); in FUZ_unitTests()
1199 XXH64_reset(&xxhNewSafe, 0); in FUZ_unitTests()
1200 XXH64_reset(&xxhNewFast, 0); in FUZ_unitTests()
1202 LZ4_setStreamDecode(&decodeStateSafe, NULL, 0); in FUZ_unitTests()
1203 LZ4_setStreamDecode(&decodeStateFast, NULL, 0); in FUZ_unitTests()
1212 FUZ_CHECKTEST(compressedSize==0, "LZ4_compress_fast_continue() compression failed"); in FUZ_unitTests()
1233 if (rNext + messageSize > ringBufferSize) rNext = 0; in FUZ_unitTests()
1234 if (dNext + messageSize > dBufferSize) dNext = 0; in FUZ_unitTests()
1247 memset(shc, 0, sizeof(*shc)); in FUZ_unitTests()
1248 DISPLAYLEVEL(4, "hc1(%p) hc2(%p) hc3(%p) size(0x%x): ", in FUZ_unitTests()
1275 { U64 const crc64 = XXH64(testInput, testCompressedSize, 0); in FUZ_unitTests()
1278 FUZ_CHECKTEST(result==0, "LZ4_compressHC_limitedOutput_continue() compression failed"); in FUZ_unitTests()
1283 { U64 const crcNew = XXH64(testVerify, testCompressedSize, 0); in FUZ_unitTests()
1294 FUZ_CHECKTEST( LZ4_saveDictHC(ctx, NULL, 0) != 0, in FUZ_unitTests()
1295 "LZ4_saveDictHC() can't save anything into (NULL,0)"); in FUZ_unitTests()
1298 { char tmp_buffer[240] = { 0 }; in FUZ_unitTests()
1299 FUZ_CHECKTEST( LZ4_saveDictHC(ctx, tmp_buffer, sizeof(tmp_buffer)) != 0, in FUZ_unitTests()
1314 memset(block, 0, blockSize); in FUZ_unitTests()
1339 { U64 const crc64 = XXH64(testInput + 64 KB, testCompressedSize, 0); in FUZ_unitTests()
1343 …FUZ_CHECKTEST(cSize==0, "LZ4_compressHC_limitedOutput_continue() dictionary compression failed : @… in FUZ_unitTests()
1348 { U64 const crcNew = XXH64(testVerify, testCompressedSize, 0); in FUZ_unitTests()
1357 XXH64(testInput + segSize, testCompressedSize, 0) ); in FUZ_unitTests()
1361 …FUZ_CHECKTEST(result1==0, "LZ4_compressHC_limitedOutput_continue() dictionary compression failed :… in FUZ_unitTests()
1364 …FUZ_CHECKTEST(result2==0, "LZ4_compressHC_limitedOutput_continue() dictionary compression failed :… in FUZ_unitTests()
1371 { XXH64_hash_t const crcNew = XXH64(testVerify, testCompressedSize, 0); in FUZ_unitTests()
1376 { U64 const crc64 = XXH64(testInput + 64 KB, testCompressedSize, 0); in FUZ_unitTests()
1380 …FUZ_CHECKTEST(result==0, "LZ4_compressHC_limitedOutput_continue() remote dictionary failed : resul… in FUZ_unitTests()
1385 { U64 const crcNew = XXH64(testVerify, testCompressedSize, 0); in FUZ_unitTests()
1403 XXH64_reset(&crcOrigState, 0); in FUZ_unitTests()
1404 XXH64_reset(&crcNewState, 0); in FUZ_unitTests()
1412 …FUZ_CHECKTEST(result==0, "LZ4_compressHC_limitedOutput_continue() dictionary compression failed : … in FUZ_unitTests()
1429 segStart += segSize + (FUZ_rand(&randState) & 0xF) + 1; in FUZ_unitTests()
1440 U32 iNext = 0; in FUZ_unitTests()
1441 U32 rNext = 0; in FUZ_unitTests()
1442 U32 dNext = 0; in FUZ_unitTests()
1445 XXH64_reset(&xxhOrig, 0); in FUZ_unitTests()
1446 XXH64_reset(&xxhNewSafe, 0); in FUZ_unitTests()
1447 XXH64_reset(&xxhNewFast, 0); in FUZ_unitTests()
1449 LZ4_setStreamDecode(&decodeStateSafe, NULL, 0); in FUZ_unitTests()
1450 LZ4_setStreamDecode(&decodeStateFast, NULL, 0); in FUZ_unitTests()
1461 FUZ_CHECKTEST(compressedSize==0, "LZ4_compress_HC_continue() compression failed"); in FUZ_unitTests()
1485 if (rNext + messageSize > ringBufferSize) rNext = 0; in FUZ_unitTests()
1486 if (dNext + messageSize > dBufferSize) dNext = 0; in FUZ_unitTests()
1504 U32 totalMessageSize = 0; in FUZ_unitTests()
1508 int iNext = 0; in FUZ_unitTests()
1509 int dNext = 0; in FUZ_unitTests()
1513 XXH64_reset(&xxhOrig, 0); in FUZ_unitTests()
1514 XXH64_reset(&xxhNewSafe, 0); in FUZ_unitTests()
1515 XXH64_reset(&xxhNewFast, 0); in FUZ_unitTests()
1517 LZ4_setStreamDecode(&decodeStateSafe, NULL, 0); in FUZ_unitTests()
1518 LZ4_setStreamDecode(&decodeStateFast, NULL, 0); in FUZ_unitTests()
1528 FUZ_CHECKTEST(compressedSize==0, "LZ4_compress_HC_continue() compression failed"); in FUZ_unitTests()
1547 assert(messageSize >= 0); in FUZ_unitTests()
1554 dNext = 0; in FUZ_unitTests()
1561 FUZ_CHECKTEST(compressedSize==0, "LZ4_compress_HC_continue() compression failed"); in FUZ_unitTests()
1589 assert(messageSize >= 0); in FUZ_unitTests()
1593 if (dNext + maxMessageSize > dBufferSize) dNext = 0; in FUZ_unitTests()
1603 int const payload = 0; in FUZ_unitTests()
1625 char const endchk = (char)0x88; in FUZ_unitTests()
1630 memset(dbuf1, 0, dlen); in FUZ_unitTests()
1634 DISPLAYLEVEL(5, "last token : 0x%0X, ", dbuf1[dsz1 - 6]); in FUZ_unitTests()
1635 DISPLAYLEVEL(5, "last ML extra lenbyte : 0x%0X, \n", dbuf1[dsz1 - 7]); in FUZ_unitTests()
1637 FUZ_CHECKTEST(dsz1 <= 0, "LZ4_compress_destSize() compression failed"); in FUZ_unitTests()
1646 memset(dbuf2, 0, dlen); in FUZ_unitTests()
1651 DISPLAYLEVEL(5, "last token : 0x%0X, ", dbuf2[dsz2 - 6]); in FUZ_unitTests()
1652 DISPLAYLEVEL(5, "last ML extra lenbyte : 0x%0X, \n", dbuf2[dsz2 - 7]); in FUZ_unitTests()
1654 … FUZ_CHECKTEST(dsz2 <= 0, "LZ4_compress_HC_destSize() compression failed"); in FUZ_unitTests()
1701 DISPLAY( " -t# : Select starting test number (default:0)\n"); in FUZ_usage()
1706 return 0; in FUZ_usage()
1712 U32 seed = 0; in main()
1713 int seedset = 0; in main()
1716 unsigned testNb = 0; in main()
1718 int use_pause = 0; in main()
1719 const char* programName = argv[0]; in main()
1720 U32 duration = 0; in main()
1729 if (argument[0]=='-') { in main()
1730 … if (!strcmp(argument, "--no-prompt")) { use_pause=0; seedset=1; g_displayLevel=1; continue; } in main()
1733 while (*argument!=0) { in main()
1751 nbTests = 0; duration = 0; in main()
1752 while ((*argument>='0') && (*argument<='9')) { in main()
1754 nbTests += (unsigned)(*argument - '0'); in main()
1761 nbTests = 0; duration = 0; in main()
1768 case '0': in main()
1777 … case '9': duration *= 10; duration += (U32)(*argument++ - '0'); continue; in main()
1785 seed=0; seedset=1; in main()
1786 while ((*argument>='0') && (*argument<='9')) { in main()
1788 seed += (U32)(*argument - '0'); in main()
1795 testNb=0; in main()
1796 while ((*argument>='0') && (*argument<='9')) { in main()
1798 testNb += (unsigned)(*argument - '0'); in main()
1805 proba=0; in main()
1806 while ((*argument>='0') && (*argument<='9')) { in main()
1808 proba += *argument - '0'; in main()
1811 if (proba<0) proba=0; in main()
1831 …if ((seedset==0) && (testNb==0)) { FUZ_unitTests(LZ4HC_CLEVEL_DEFAULT); FUZ_unitTests(LZ4HC_CLEVEL… in main()
1833 nbTests += (nbTests==0); /* avoid zero */ in main()