• Home
  • Raw
  • Download

Lines Matching refs:missingBytes

583         {   size_t const missingBytes = FUZ_rand(&randState) % blockSize;  in FUZ_test()  local
584 int const targetSize = (int)(blockSize - missingBytes); in FUZ_test()
616 { int missingBytes = (FUZ_rand(&randState) % 0x3F) + 1; in FUZ_test() local
617 if (missingBytes >= compressedSize) missingBytes = compressedSize-1; in FUZ_test()
618 missingBytes += !missingBytes; /* avoid special case missingBytes==0 */ in FUZ_test()
619 compressedBuffer[compressedSize-missingBytes] = 0; in FUZ_test()
620 … ret = LZ4_compress_default(block, compressedBuffer, blockSize, compressedSize-missingBytes); in FUZ_test()
621 …ret, "LZ4_compress_default should have failed (output buffer too small by %i byte)", missingBytes); in FUZ_test()
622 …mpressedBuffer[compressedSize-missingBytes], "LZ4_compress_default overran output buffer ! (%i mis… in FUZ_test()
627 { int missingBytes = (FUZ_rand(&randState) % 0x3F) + 1; in FUZ_test() local
628 if (missingBytes >= HCcompressedSize) missingBytes = HCcompressedSize-1; in FUZ_test()
629 missingBytes += !missingBytes; /* avoid special case missingBytes==0 */ in FUZ_test()
630 compressedBuffer[HCcompressedSize-missingBytes] = 0; in FUZ_test()
631 …ret = LZ4_compress_HC(block, compressedBuffer, blockSize, HCcompressedSize-missingBytes, compressi… in FUZ_test()
632 …TEST(ret, "LZ4_compress_HC should have failed (output buffer too small by %i byte)", missingBytes); in FUZ_test()
633 …mpressedBuffer[HCcompressedSize-missingBytes], "LZ4_compress_HC overran output buffer ! (%i missin… in FUZ_test()
721 { U32 const missingBytes = (FUZ_rand(&randState) & 0xF) + 2; in FUZ_test() local
722 if ((U32)blockSize > missingBytes) { in FUZ_test()
723 decodedBuffer[blockSize-missingBytes] = 0; in FUZ_test()
724 …mpressedBuffer, decodedBuffer, blockContinueCompressedSize, blockSize-missingBytes, dict, dictSize… in FUZ_test()
725 …_decompress_safe_usingDict should have failed : output buffer too small (-%u byte)", missingBytes); in FUZ_test()
726 …ffer[blockSize-missingBytes], "LZ4_decompress_safe_usingDict overrun specified output buffer size … in FUZ_test()
814 { U32 const missingBytes = (FUZ_rand(&randState) & 0xF) + 2; in FUZ_test() local
815 if ((U32)blockSize > missingBytes) { in FUZ_test()
816 decodedBuffer[blockSize-missingBytes] = 0; in FUZ_test()
817 …mpressedBuffer, decodedBuffer, blockContinueCompressedSize, blockSize-missingBytes, dict, dictSize… in FUZ_test()
818 …_decompress_safe_usingDict should have failed : output buffer too small (-%u byte)", missingBytes); in FUZ_test()
819 …ffer[blockSize-missingBytes], "LZ4_decompress_safe_usingDict overrun specified output buffer size … in FUZ_test()