Home
last modified time | relevance | path

Searched refs:litEnd (Results 1 – 10 of 10) sorted by relevance

/external/zstd/tests/fuzz/
Dsequence_compression_api.c75 const uint8_t* const litEnd = literalsBuffer + literalsSize; in decodeSequences() local
87 if (litPtr + generatedSequences[i].litLength > litEnd) { in decodeSequences()
120 FUZZ_ASSERT(litPtr <= litEnd); in decodeSequences()
121 lastLLSize = (uint32_t)(litEnd - litPtr); in decodeSequences()
/external/zstd/lib/decompress/
Dzstd_decompress_block.c1115 const BYTE* const litEnd = litPtr + dctx->litSize; in ZSTD_decompressSequences_body() local
1184 …size_t const oneSeqSize = ZSTD_execSequence(op, oend, sequence, &litPtr, litEnd, prefixStart, vBas… in ZSTD_decompressSequences_body()
1212 { size_t const lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences_body()
1249 const BYTE* const litEnd = litPtr + dctx->litSize; in ZSTD_decompressSequencesLong_body() local
1288 …(op, oend, sequences[(seqNb-ADVANCED_SEQS) & STORED_SEQS_MASK], &litPtr, litEnd, prefixStart, dict… in ZSTD_decompressSequencesLong_body()
1303 … ZSTD_execSequence(op, oend, sequences[seqNb&STORED_SEQS_MASK], &litPtr, litEnd, prefixStart, dict… in ZSTD_decompressSequencesLong_body()
1317 { size_t const lastLLSize = litEnd - litPtr; in ZSTD_decompressSequencesLong_body()
/external/zstd/lib/legacy/
Dzstd_v01.c1768 const BYTE* const litEnd = *litPtr + litLength; in ZSTD_execSequence() local
1772 if (litEnd > litLimit) return ERROR(corruption_detected); in ZSTD_execSequence()
1776 if (((size_t)(*litPtr - op) < 8) || ((size_t)(oend-litEnd) < 8) || (op+litLength > oend-8)) in ZSTD_execSequence()
1781 *litPtr = litEnd; /* update for next sequence */ in ZSTD_execSequence()
1788 const U32 overlapRisk = (((size_t)(litEnd - endMatch)) < 12); in ZSTD_execSequence()
1864 const BYTE* const litEnd = litStart + litSize; in ZSTD_decompressSequences() local
1899 oneSeqSize = ZSTD_execSequence(op, sequence, &litPtr, litEnd, base, oend); in ZSTD_decompressSequences()
1910 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences()
Dzstd_v03.c2759 const BYTE* const litEnd = *litPtr + sequence.litLength; in ZSTD_execSequence() local
2764 if (litEnd > litLimit) return ERROR(corruption_detected); /* overRead beyond lit buffer */ in ZSTD_execSequence()
2769 *litPtr = litEnd; /* update for next sequence */ in ZSTD_execSequence()
2830 const BYTE* const litEnd = litPtr + dctx->litSize; in ZSTD_decompressSequences() local
2865 oneSeqSize = ZSTD_execSequence(op, sequence, &litPtr, litEnd, base, oend); in ZSTD_decompressSequences()
2876 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences()
2877 if (litPtr > litEnd) return ERROR(corruption_detected); in ZSTD_decompressSequences()
Dzstd_v04.c2880 const BYTE* const litEnd = *litPtr + sequence.litLength; in ZSTD_execSequence() local
2886 if (litEnd > litLimit) return ERROR(corruption_detected); /* risk read beyond lit buffer */ in ZSTD_execSequence()
2891 *litPtr = litEnd; /* update for next sequence */ in ZSTD_execSequence()
2966 const BYTE* const litEnd = litPtr + dctx->litSize; in ZSTD_decompressSequences() local
3004 … oneSeqSize = ZSTD_execSequence(op, oend, sequence, &litPtr, litEnd, base, vBase, dictEnd); in ZSTD_decompressSequences()
3014 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences()
3015 if (litPtr > litEnd) return ERROR(corruption_detected); in ZSTD_decompressSequences()
Dzstd_v02.c3118 const BYTE* const litEnd = *litPtr + sequence.litLength; in ZSTD_execSequence() local
3123 if (litEnd > litLimit) return ERROR(corruption_detected); /* overRead beyond lit buffer */ in ZSTD_execSequence()
3128 *litPtr = litEnd; /* update for next sequence */ in ZSTD_execSequence()
3189 const BYTE* const litEnd = litPtr + dctx->litSize; in ZSTD_decompressSequences() local
3224 oneSeqSize = ZSTD_execSequence(op, sequence, &litPtr, litEnd, base, oend); in ZSTD_decompressSequences()
3235 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences()
3236 if (litPtr > litEnd) return ERROR(corruption_detected); in ZSTD_decompressSequences()
Dzstd_v05.c3238 const BYTE* const litEnd = *litPtr + sequence.litLength; in ZSTDv05_execSequence() local
3244 if (litEnd > litLimit) return ERROR(corruption_detected); /* risk read beyond lit buffer */ in ZSTDv05_execSequence()
3249 *litPtr = litEnd; /* update for next sequence */ in ZSTDv05_execSequence()
3318 const BYTE* const litEnd = litPtr + dctx->litSize; in ZSTDv05_decompressSequences() local
3355 … oneSeqSize = ZSTDv05_execSequence(op, oend, sequence, &litPtr, litEnd, base, vBase, dictEnd); in ZSTDv05_decompressSequences()
3366 size_t lastLLSize = litEnd - litPtr; in ZSTDv05_decompressSequences()
3367 … if (litPtr > litEnd) return ERROR(corruption_detected); /* too many literals already used */ in ZSTDv05_decompressSequences()
Dzstd_v06.c3452 const BYTE* const litEnd = litPtr + dctx->litSize; in ZSTDv06_decompressSequences() local
3495 …{ size_t const oneSeqSize = ZSTDv06_execSequence(op, oend, sequence, &litPtr, litEnd, base, vBas… in ZSTDv06_decompressSequences()
3505 { size_t const lastLLSize = litEnd - litPtr; in ZSTDv06_decompressSequences()
3506 … if (litPtr > litEnd) return ERROR(corruption_detected); /* too many literals already used */ in ZSTDv06_decompressSequences()
Dzstd_v07.c3679 const BYTE* const litEnd = litPtr + dctx->litSize; in ZSTDv07_decompressSequences() local
3708 …size_t const oneSeqSize = ZSTDv07_execSequence(op, oend, sequence, &litPtr, litEnd, base, vBase, d… in ZSTDv07_decompressSequences()
3720 { size_t const lastLLSize = litEnd - litPtr; in ZSTDv07_decompressSequences()
/external/zstd/lib/compress/
Dzstd_compress_internal.h505 BYTE const* const litEnd = literals + litLength; in ZSTD_storeSeq() local
519 if (litEnd <= litLimit_w) { in ZSTD_storeSeq()
529 ZSTD_safecopyLiterals(seqStorePtr->lit, literals, litEnd, litLimit_w); in ZSTD_storeSeq()