Lines Matching full:0

58     dstPtr[0] = (BYTE) value32;  in FUZ_writeLE32()
68 #define LZ4F_MAGIC_SKIPPABLE_START 0x184D2A50U
90 static clock_t g_clockTime = 0;
96 static U32 no_prompt = 0;
98 static U32 use_pause = 0;
125 #define FUZ_RAND15BITS (FUZ_rand(seed) & 0x7FFF)
130 size_t pos = 0; in FUZ_fillCompressibleNoiseBuffer()
159 unsigned nbBits = 0; in FUZ_highbit()
160 if (v32==0) return 0; in FUZ_highbit()
184 int basicTests_error = 0; in basicTests()
186 memset(&prefs, 0, sizeof(prefs)); in basicTests()
195 /* LZ4F_compressBound() : special case : srcSize == 0 */ in basicTests()
196 DISPLAYLEVEL(3, "LZ4F_compressBound(0) = "); in basicTests()
197 { size_t const cBound = LZ4F_compressBound(0, NULL); in basicTests()
206 memset(&autoFlushPrefs, 0, sizeof(autoFlushPrefs)); in basicTests()
214 DISPLAYLEVEL(3, "LZ4F_compressBound(1 KB, autoFlush=0) = "); in basicTests()
221 testSize = 0; in basicTests()
248 memset(&fastCompressPrefs, 0, sizeof(fastCompressPrefs)); in basicTests()
290 if (decResult != 0) goto _output_error; /* should finish now */ in basicTests()
297 { size_t oSize = 0; in basicTests()
298 size_t iSize = 0; in basicTests()
302 DISPLAYLEVEL(3, "Start by feeding 0 bytes, to get next input size : "); in basicTests()
308 { size_t nullSize = 0; in basicTests()
453 memset(&prefs, 0, sizeof(prefs)); in basicTests()
482 memset(&(prefs.frameInfo), 0, sizeof(prefs.frameInfo)); in basicTests()
517 U32 const dictID = 0x99; in basicTests()
521 memset(&prefs.frameInfo, 0, sizeof(prefs.frameInfo)); in basicTests()
528 memset(&prefs.frameInfo, 0, sizeof(prefs.frameInfo)); in basicTests()
562 crcOrig = XXH64(CNBuffer, dictSize, 0); in basicTests()
576 { U64 const crcDest = XXH64(decodedBuffer, decodedSize, 0); in basicTests()
585 memset(&cParams, 0, sizeof(cParams)); in basicTests()
597 memset(&cParams, 0, sizeof(cParams)); in basicTests()
611 memset(&cParams, 0, sizeof(cParams)); in basicTests()
633 crcOrig = XXH64(CNBuffer, inSize, 0); in basicTests()
634 { U64 const crcDest = XXH64(decodedBuffer, decodedSize, 0); in basicTests()
647 memset(&cParams, 0, sizeof(cParams)); in basicTests()
669 crcOrig = XXH64(CNBuffer, inSize, 0); in basicTests()
670 { U64 const crcDest = XXH64(decodedBuffer, decodedSize, 0); in basicTests()
736 FUZ_writeLE32(ip+4, 0); in basicTests()
788 size_t p=0; in locateBuffDiff()
828 size_t totalOut = 0; in test_lz4f_decompression_wBuffers()
829 size_t moreToFlush = 0; in test_lz4f_decompression_wBuffers()
845 memset(&dOptions, 0, sizeof(dOptions)); in test_lz4f_decompression_wBuffers()
847 if (o_scenario == o_overwrite) dOptions.stableDst = 0; /* overwrite mode */ in test_lz4f_decompression_wBuffers()
854 void* const tmpop = (FUZ_rand(randState) & (oSize == 0)) ? NULL : op; in test_lz4f_decompression_wBuffers()
855 const void* const tmpip = (FUZ_rand(randState) & (iSize == 0)) ? NULL : iBuffer; in test_lz4f_decompression_wBuffers()
884 && (iSize == 0)) /* no input consumed */ in test_lz4f_decompression_wBuffers()
887 if (moreToFlush != 0) return LZ4F_ERROR_decompressionFailed; in test_lz4f_decompression_wBuffers()
894 return 0; in test_lz4f_decompression_wBuffers()
906 …o_scenario_e const o_scenario = (o_scenario_e)(FUZ_rand(randState) % 3); /* 0 : contiguous; 1 : … in test_lz4f_decompression()
930 unsigned testNb = 0; in fuzzerTests()
959 … for (testNb =0; (testNb < startTest); testNb++) (void)FUZ_rand(&coreRand); /* sync randomizer */ in fuzzerTests()
975 memset(&prefs, 0, sizeof(prefs)); in fuzzerTests()
980 prefs.frameInfo.contentSize = ((FUZ_rand(&randState) & 0xF) == 1) ? srcSize : 0; in fuzzerTests()
981 prefs.autoFlush = neverFlush ? 0 : (FUZ_rand(&randState) & 7) == 2; in fuzzerTests()
983 if ((FUZ_rand(&randState) & 0xF) == 1) prefsPtr = NULL; in fuzzerTests()
987 if ((FUZ_rand(&randState) & 0xFFF) == 0) { in fuzzerTests()
994 } else if ((FUZ_rand(&randState) & 0xF) == 2) { /* single pass compression (simple) */ in fuzzerTests()
1005 memset(&cOptions, 0, sizeof(cOptions)); in fuzzerTests()
1027 { unsigned const forceFlush = neverFlush ? 0 : ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
1035 op[0] = op[1] = op[2] = 0; in fuzzerTests()
1036 op[3] = 0x80; /* 0x80000000U in little-endian format */ in fuzzerTests()
1039 U32 const bc32 = XXH32(op, 0, 0); in fuzzerTests()
1040 op[0] = (BYTE)bc32; /* little endian format */ in fuzzerTests()
1048 { size_t const dstEndSafeSize = LZ4F_compressBound(0, prefsPtr); in fuzzerTests()
1083 size_t pos = 0; in fuzzerTests()
1094 U32 const nbBits = nbBitsCodes ? nbBitsCodes-1 : 0; in fuzzerTests()
1105 …er, cSize, srcStart, srcSize, crcOrig, &randState, dCtxNoise, seed, testNb, 0 /*don't search error… in fuzzerTests()
1126 return 0; in fuzzerTests()
1139 DISPLAY( " -t# : Select starting test number (default:0)\n"); in FUZ_usage()
1143 return 0; in FUZ_usage()
1149 U32 seed=0; in main()
1150 int seedset=0; in main()
1153 unsigned testNb = 0; in main()
1155 int result=0; in main()
1156 U32 duration=0; in main()
1157 const char* const programName = argv[0]; in main()
1166 if (argument[0]=='-') { in main()
1175 while (*argument!=0) { in main()
1195 nbTests=0; duration=0; in main()
1196 while ((*argument>='0') && (*argument<='9')) { in main()
1198 nbTests += (unsigned)(*argument - '0'); in main()
1205 nbTests = 0; duration = 0; in main()
1212 case '0': in main()
1221 … case '9': duration *= 10; duration += (U32)(*argument++ - '0'); continue; in main()
1229 seed=0; in main()
1231 while ((*argument>='0') && (*argument<='9')) { in main()
1233 seed += (U32)(*argument - '0'); in main()
1239 testNb=0; in main()
1240 while ((*argument>='0') && (*argument<='9')) { in main()
1242 testNb += (unsigned)(*argument - '0'); in main()
1248 proba=0; in main()
1249 while ((*argument>='0') && (*argument<='9')) { in main()
1251 proba += *argument - '0'; in main()
1254 if (proba<0) proba=0; in main()
1276 nbTests += (nbTests==0); /* avoid zero */ in main()
1278 if (testNb==0) result = basicTests(seed, ((double)proba) / 100); in main()