Lines Matching refs:blockSize
317 int dictSize, blockSize, blockStart; in FUZ_test() local
322 blockSize = FUZ_rand(&randState) % FUZ_MAX_BLOCK_SIZE; in FUZ_test()
323 blockStart = FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize); in FUZ_test()
329 LZ4_compress_continue(&LZ4dict, block, compressedBuffer, blockSize); in FUZ_test()
331 LZ4_compress_continue(&LZ4dict, block, compressedBuffer, blockSize); in FUZ_test()
333 LZ4_compress_continue(&LZ4dict, block, compressedBuffer, blockSize); in FUZ_test()
343 int dictSize, blockSize, blockStart, compressedSize, HCcompressedSize; in FUZ_test() local
351 blockSize = FUZ_rand(&randState) % FUZ_MAX_BLOCK_SIZE; in FUZ_test()
352 blockStart = FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize); in FUZ_test()
362 ret = LZ4_compressHC(block, compressedBuffer, blockSize); in FUZ_test()
368 ret = LZ4_compressHC_withStateHC(stateLZ4HC, block, compressedBuffer, blockSize); in FUZ_test()
373 ret = LZ4_compress_withState(stateLZ4, block, compressedBuffer, blockSize); in FUZ_test()
378 ret = LZ4_compress(block, compressedBuffer, blockSize); in FUZ_test()
384 crcOrig = XXH32(block, blockSize, 0); in FUZ_test()
388 ret = LZ4_decompress_fast(compressedBuffer, decodedBuffer, blockSize); in FUZ_test()
391 crcCheck = XXH32(decodedBuffer, blockSize, 0); in FUZ_test()
396 decodedBuffer[blockSize-1] = 0; in FUZ_test()
397 ret = LZ4_decompress_fast(compressedBuffer, decodedBuffer, blockSize-1); in FUZ_test()
399 … FUZ_CHECKTEST(decodedBuffer[blockSize-1], "LZ4_decompress_fast overrun specified output buffer"); in FUZ_test()
403 ret = LZ4_decompress_fast(compressedBuffer, decodedBuffer, blockSize+1); in FUZ_test()
408 decodedBuffer[blockSize] = 0; in FUZ_test()
409 ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize, blockSize); in FUZ_test()
411 FUZ_CHECKTEST(ret!=blockSize, "LZ4_decompress_safe did not regenerate original data"); in FUZ_test()
412 …FUZ_CHECKTEST(decodedBuffer[blockSize], "LZ4_decompress_safe overrun specified output buffer size"… in FUZ_test()
413 crcCheck = XXH32(decodedBuffer, blockSize, 0); in FUZ_test()
418 decodedBuffer[blockSize] = 0; in FUZ_test()
419 decodedBuffer[blockSize+1] = 0; in FUZ_test()
420 ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize, blockSize+1); in FUZ_test()
422 FUZ_CHECKTEST(ret!=blockSize, "LZ4_decompress_safe did not regenerate original data"); in FUZ_test()
424 …FUZ_CHECKTEST(decodedBuffer[blockSize+1], "LZ4_decompress_safe overrun specified output buffer siz… in FUZ_test()
425 crcCheck = XXH32(decodedBuffer, blockSize, 0); in FUZ_test()
430 decodedBuffer[blockSize-1] = 0; in FUZ_test()
431 ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize, blockSize-1); in FUZ_test()
433 …FUZ_CHECKTEST(decodedBuffer[blockSize-1], "LZ4_decompress_safe overrun specified output buffer siz… in FUZ_test()
437 if (blockSize>10) in FUZ_test()
439 decodedBuffer[blockSize-10] = 0; in FUZ_test()
440 … ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize, blockSize-10); in FUZ_test()
442 …FUZ_CHECKTEST(decodedBuffer[blockSize-10], "LZ4_decompress_safe overrun specified output buffer si… in FUZ_test()
447 ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize-1, blockSize); in FUZ_test()
448 …ze being one byte too short (blockSize=%i, ret=%i, compressedSize=%i)", blockSize, ret, compressed… in FUZ_test()
452 decodedBuffer[blockSize] = 0; in FUZ_test()
453 ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize+1, blockSize); in FUZ_test()
455 …FUZ_CHECKTEST(decodedBuffer[blockSize], "LZ4_decompress_safe overrun specified output buffer size"… in FUZ_test()
459 …4_decompress_safe_partial(compressedBuffer, decodedBuffer, compressedSize, blockSize/2, blockSize); in FUZ_test()
464 …4_decompress_safe_partial(compressedBuffer, decodedBuffer, compressedSize, blockSize-3, blockSize); in FUZ_test()
471 ret = LZ4_compress_limitedOutput(block, compressedBuffer, blockSize, compressedSize); in FUZ_test()
476 …ret = LZ4_compress_limitedOutput_withState(stateLZ4, block, compressedBuffer, blockSize, compresse… in FUZ_test()
481 ret = LZ4_compressHC_limitedOutput(block, compressedBuffer, blockSize, HCcompressedSize); in FUZ_test()
486 …mpressHC_limitedOutput_withStateHC(stateLZ4HC, block, compressedBuffer, blockSize, HCcompressedSiz… in FUZ_test()
496 … ret = LZ4_compress_limitedOutput(block, compressedBuffer, blockSize, compressedSize-missingBytes); in FUZ_test()
508 …ret = LZ4_compressHC_limitedOutput(block, compressedBuffer, blockSize, HCcompressedSize-missingByt… in FUZ_test()
522 …essedSize = LZ4_compress_continue ((LZ4_stream_t*)LZ4continue, block, compressedBuffer, blockSize); in FUZ_test()
529 … ret = LZ4_decompress_fast_withPrefix64k(compressedBuffer, decodedBuffer+dictSize, blockSize); in FUZ_test()
531 crcCheck = XXH32(decodedBuffer+dictSize, blockSize, 0); in FUZ_test()
536 printf("Wrong Byte at position %i/%i\n", i, blockSize); in FUZ_test()
542 …fe_withPrefix64k(compressedBuffer, decodedBuffer+dictSize, blockContinueCompressedSize, blockSize); in FUZ_test()
543 …FUZ_CHECKTEST(ret!=blockSize, "LZ4_decompress_safe_withPrefix64k did not regenerate original data"… in FUZ_test()
544 crcCheck = XXH32(decodedBuffer+dictSize, blockSize, 0); in FUZ_test()
552 … blockContinueCompressedSize = LZ4_compress_continue(&LZ4dict, block, compressedBuffer, blockSize); in FUZ_test()
557 …ret = LZ4_compress_limitedOutput_continue(&LZ4dict, block, compressedBuffer, blockSize, blockConti… in FUZ_test()
562 …ret = LZ4_compress_limitedOutput_continue(&LZ4dict, block, compressedBuffer, blockSize, blockConti… in FUZ_test()
568 decodedBuffer[blockSize] = 0; in FUZ_test()
569 … ret = LZ4_decompress_fast_usingDict(compressedBuffer, decodedBuffer, blockSize, dict, dictSize); in FUZ_test()
571 …FUZ_CHECKTEST(decodedBuffer[blockSize], "LZ4_decompress_fast_usingDict overrun specified output bu… in FUZ_test()
572 crcCheck = XXH32(decodedBuffer, blockSize, 0); in FUZ_test()
577 printf("Wrong Byte at position %i/%i\n", i, blockSize); in FUZ_test()
582 decodedBuffer[blockSize] = 0; in FUZ_test()
583 …usingDict(compressedBuffer, decodedBuffer, blockContinueCompressedSize, blockSize, dict, dictSize); in FUZ_test()
584 … FUZ_CHECKTEST(ret!=blockSize, "LZ4_decompress_safe_usingDict did not regenerate original data"); in FUZ_test()
585 …FUZ_CHECKTEST(decodedBuffer[blockSize], "LZ4_decompress_safe_usingDict overrun specified output bu… in FUZ_test()
586 crcCheck = XXH32(decodedBuffer, blockSize, 0); in FUZ_test()
590 decodedBuffer[blockSize-1] = 0; in FUZ_test()
591 … ret = LZ4_decompress_fast_usingDict(compressedBuffer, decodedBuffer, blockSize-1, dict, dictSize); in FUZ_test()
593 …FUZ_CHECKTEST(decodedBuffer[blockSize-1], "LZ4_decompress_fast_usingDict overrun specified output … in FUZ_test()
596 decodedBuffer[blockSize-1] = 0; in FUZ_test()
597 …usingDict(compressedBuffer, decodedBuffer, blockContinueCompressedSize, blockSize-1, dict, dictSiz… in FUZ_test()
599 …FUZ_CHECKTEST(decodedBuffer[blockSize-1], "LZ4_decompress_safe_usingDict overrun specified output … in FUZ_test()
604 if ((U32)blockSize > missingBytes) in FUZ_test()
606 decodedBuffer[blockSize-missingBytes] = 0; in FUZ_test()
607 …usingDict(compressedBuffer, decodedBuffer, blockContinueCompressedSize, blockSize-missingBytes, di… in FUZ_test()
609 …fer[blockSize-missingBytes], "LZ4_decompress_safe_usingDict overrun specified output buffer size (… in FUZ_test()
619 …ckContinueCompressedSize = LZ4_compressHC_continue(&LZ4dictHC, block, compressedBuffer, blockSize); in FUZ_test()
624 …ret = LZ4_compressHC_limitedOutput_continue(&LZ4dictHC, block, compressedBuffer, blockSize, blockC… in FUZ_test()
629 …ret = LZ4_compressHC_limitedOutput_continue(&LZ4dictHC, block, compressedBuffer, blockSize, blockC… in FUZ_test()
634 decodedBuffer[blockSize] = 0; in FUZ_test()
635 …usingDict(compressedBuffer, decodedBuffer, blockContinueCompressedSize, blockSize, dict, dictSize); in FUZ_test()
636 … FUZ_CHECKTEST(ret!=blockSize, "LZ4_decompress_safe_usingDict did not regenerate original data"); in FUZ_test()
637 …FUZ_CHECKTEST(decodedBuffer[blockSize], "LZ4_decompress_safe_usingDict overrun specified output bu… in FUZ_test()
638 crcCheck = XXH32(decodedBuffer, blockSize, 0); in FUZ_test()
643 printf("Wrong Byte at position %i/%i\n", i, blockSize); in FUZ_test()
650 bytes += blockSize; in FUZ_test()