/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress_block.c | 1516 size_t const lastLLSize = litBufferEnd - litPtr; local 1517 RETURN_ERROR_IF(lastLLSize > (size_t)(oend - op), dstSize_tooSmall, ""); 1519 ZSTD_memmove(op, litPtr, lastLLSize); 1520 op += lastLLSize; 1526 { size_t const lastLLSize = litBufferEnd - litPtr; local 1527 RETURN_ERROR_IF(lastLLSize > (size_t)(oend-op), dstSize_tooSmall, ""); 1529 ZSTD_memcpy(op, litPtr, lastLLSize); 1530 op += lastLLSize; 1615 { size_t const lastLLSize = litEnd - litPtr; local 1616 RETURN_ERROR_IF(lastLLSize > (size_t)(oend-op), dstSize_tooSmall, ""); [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress_block.c | 1091 { size_t const lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences_body() local 1092 RETURN_ERROR_IF(lastLLSize > (size_t)(oend-op), dstSize_tooSmall, ""); in ZSTD_decompressSequences_body() 1094 memcpy(op, litPtr, lastLLSize); in ZSTD_decompressSequences_body() 1095 op += lastLLSize; in ZSTD_decompressSequences_body() 1215 { size_t const lastLLSize = litEnd - litPtr; in ZSTD_decompressSequencesLong_body() local 1216 RETURN_ERROR_IF(lastLLSize > (size_t)(oend-op), dstSize_tooSmall, ""); in ZSTD_decompressSequencesLong_body() 1218 memcpy(op, litPtr, lastLLSize); in ZSTD_decompressSequencesLong_body() 1219 op += lastLLSize; in ZSTD_decompressSequencesLong_body()
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_ldm.c | 678 size_t lastLLSize; in ZSTD_ldm_blockCompress() local 680 lastLLSize = blockCompressor(ms, seqStore, rep, src, srcSize); in ZSTD_ldm_blockCompress() 682 return lastLLSize; in ZSTD_ldm_blockCompress()
|
H A D | zstd_compress.c | 2799 const BYTE* anchor, size_t lastLLSize) in ZSTD_storeLastLiterals() argument 2801 ZSTD_memcpy(seqStorePtr->lit, anchor, lastLLSize); in ZSTD_storeLastLiterals() 2802 seqStorePtr->lit += lastLLSize; in ZSTD_storeLastLiterals() 2850 size_t lastLLSize; in ZSTD_buildSeqStore() local 2858 lastLLSize = in ZSTD_buildSeqStore() 2875 lastLLSize = in ZSTD_buildSeqStore() 2887 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore() 2889 { const BYTE* const lastLiterals = (const BYTE*)src + srcSize - lastLLSize; in ZSTD_buildSeqStore() 2890 ZSTD_storeLastLiterals(&zc->seqStore, lastLiterals, lastLLSize); in ZSTD_buildSeqStore() 2902 size_t lastLLSize; in ZSTD_copyBlockSequences() local [all …]
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v01.c | 1906 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences() local 1907 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences() 1908 if (lastLLSize > 0) { in ZSTD_decompressSequences() 1909 if (op != litPtr) memmove(op, litPtr, lastLLSize); in ZSTD_decompressSequences() 1910 op += lastLLSize; in ZSTD_decompressSequences()
|
H A D | zstd_v03.c | 2872 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences() local 2874 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences() 2875 if (lastLLSize > 0) { in ZSTD_decompressSequences() 2876 if (op != litPtr) memmove(op, litPtr, lastLLSize); in ZSTD_decompressSequences() 2877 op += lastLLSize; in ZSTD_decompressSequences()
|
H A D | zstd_v02.c | 3231 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences() local 3233 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences() 3234 if (lastLLSize > 0) { in ZSTD_decompressSequences() 3235 if (op != litPtr) memmove(op, litPtr, lastLLSize); in ZSTD_decompressSequences() 3236 op += lastLLSize; in ZSTD_decompressSequences()
|
H A D | zstd_v04.c | 3010 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences() local 3012 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences() 3013 if (lastLLSize > 0) { in ZSTD_decompressSequences() 3014 if (op != litPtr) memcpy(op, litPtr, lastLLSize); in ZSTD_decompressSequences() 3015 op += lastLLSize; in ZSTD_decompressSequences()
|
H A D | zstd_v05.c | 3362 size_t lastLLSize = litEnd - litPtr; in ZSTDv05_decompressSequences() local 3364 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTDv05_decompressSequences() 3365 if (lastLLSize > 0) { in ZSTDv05_decompressSequences() 3366 memcpy(op, litPtr, lastLLSize); in ZSTDv05_decompressSequences() 3367 op += lastLLSize; in ZSTDv05_decompressSequences()
|
H A D | zstd_v06.c | 3501 { size_t const lastLLSize = litEnd - litPtr; in ZSTDv06_decompressSequences() local 3503 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTDv06_decompressSequences() 3504 if (lastLLSize > 0) { in ZSTDv06_decompressSequences() 3505 memcpy(op, litPtr, lastLLSize); in ZSTDv06_decompressSequences() 3506 op += lastLLSize; in ZSTDv06_decompressSequences()
|
H A D | zstd_v07.c | 3716 { size_t const lastLLSize = litEnd - litPtr; in ZSTDv07_decompressSequences() local 3718 if (lastLLSize > (size_t)(oend-op)) return ERROR(dstSize_tooSmall); in ZSTDv07_decompressSequences() 3719 if (lastLLSize > 0) { in ZSTDv07_decompressSequences() 3720 memcpy(op, litPtr, lastLLSize); in ZSTDv07_decompressSequences() 3721 op += lastLLSize; in ZSTDv07_decompressSequences()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 2227 const BYTE* anchor, size_t lastLLSize) in ZSTD_storeLastLiterals() argument 2229 memcpy(seqStorePtr->lit, anchor, lastLLSize); in ZSTD_storeLastLiterals() 2230 seqStorePtr->lit += lastLLSize; in ZSTD_storeLastLiterals() 2274 size_t lastLLSize; in ZSTD_buildSeqStore() local 2282 lastLLSize = in ZSTD_buildSeqStore() 2298 lastLLSize = in ZSTD_buildSeqStore() 2306 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore() 2308 { const BYTE* const lastLiterals = (const BYTE*)src + srcSize - lastLLSize; in ZSTD_buildSeqStore() 2309 ZSTD_storeLastLiterals(&zc->seqStore, lastLiterals, lastLLSize); in ZSTD_buildSeqStore()
|