Home | History | Annotate | Download | only in tests

Lines Matching refs:missingBytes

480         {   int missingBytes = (FUZ_rand(&randState) % 0x3F) + 1;
481 if (missingBytes >= compressedSize) missingBytes = compressedSize-1;
482 missingBytes += !missingBytes; /* avoid special case missingBytes==0 */
483 compressedBuffer[compressedSize-missingBytes] = 0;
484 ret = LZ4_compress_default(block, compressedBuffer, blockSize, compressedSize-missingBytes);
485 FUZ_CHECKTEST(ret, "LZ4_compress_limitedOutput should have failed (output buffer too small by %i byte)", missingBytes);
486 FUZ_CHECKTEST(compressedBuffer[compressedSize-missingBytes], "LZ4_compress_limitedOutput overran output buffer ! (%i missingBytes)", missingBytes)
491 { int missingBytes = (FUZ_rand(&randState) % 0x3F) + 1;
492 if (missingBytes >= HCcompressedSize) missingBytes = HCcompressedSize-1;
493 missingBytes += !missingBytes; /* avoid special case missingBytes==0 */
494 compressedBuffer[HCcompressedSize-missingBytes] = 0;
495 ret = LZ4_compress_HC(block, compressedBuffer, blockSize, HCcompressedSize-missingBytes, compressionLevel);
496 FUZ_CHECKTEST(ret, "LZ4_compressHC_limitedOutput should have failed (output buffer too small by %i byte)", missingBytes);
497 FUZ_CHECKTEST(compressedBuffer[HCcompressedSize-missingBytes], "LZ4_compressHC_limitedOutput overran output buffer ! (%i missingBytes)", missingBytes)
584 { U32 const missingBytes = (FUZ_rand(&randState) & 0xF) + 2;
585 if ((U32)blockSize > missingBytes) {
586 decodedBuffer[blockSize-missingBytes] = 0;
587 ret = LZ4_decompress_safe_usingDict(compressedBuffer, decodedBuffer, blockContinueCompressedSize, blockSize-missingBytes, dict, dictSize);
588 FUZ_CHECKTEST(ret>=0, "LZ4_decompress_safe_usingDict should have failed : output buffer too small (-%u byte)", missingBytes);
589 FUZ_CHECKTEST(decodedBuffer[blockSize-missingBytes], "LZ4_decompress_safe_usingDict overrun specified output buffer size (-%u byte) (blockSize=%i)", missingBytes, blockSize);