Home
last modified time | relevance | path

Searched refs:WILDCOPY_OVERLENGTH (Results 1 – 15 of 15) sorted by relevance

/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c76 …ot_streaming && dstCapacity > ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH + litSize + WILDCOPY_OVERLE… in ZSTD_allocateLiteralsBuffer()
79 dctx->litBuffer = (BYTE*)dst + ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer()
88 …tBuffer = (BYTE*)dst + expectedWriteSize - litSize + ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer()
210 …ZSTD_memmove(dctx->litBuffer + ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OVERLENGTH, dctx->litBuffer, lit… in ZSTD_decodeLiteralsBlock()
211 dctx->litBuffer += ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OVERLENGTH; in ZSTD_decodeLiteralsBlock()
212 dctx->litBufferEnd -= WILDCOPY_OVERLENGTH; in ZSTD_decodeLiteralsBlock()
247 …if (lhSize+litSize+WILDCOPY_OVERLENGTH > srcSize) { /* risk reading beyond src buffer with wildco… in ZSTD_decodeLiteralsBlock()
842 if (op <= oend - WILDCOPY_OVERLENGTH && diff < -WILDCOPY_VECLEN) { in ZSTD_safecopyDstBeforeSrc()
843 ZSTD_wildcopy(op, ip, oend - WILDCOPY_OVERLENGTH - op, ZSTD_no_overlap); in ZSTD_safecopyDstBeforeSrc()
844 ip += oend - WILDCOPY_OVERLENGTH - op; in ZSTD_safecopyDstBeforeSrc()
[all …]
H A Dzstd_decompress_internal.h193 …BYTE litExtraBuffer[ZSTD_LITBUFFEREXTRASIZE + WILDCOPY_OVERLENGTH]; /* literal buffer can be split…
H A Dzstd_decompress.c1827 … long const neededRBSize = windowSize + blockSize + ZSTD_BLOCKSIZE_MAX + (WILDCOPY_OVERLENGTH * 2); in ZSTD_decodingBufferSize_min()
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.c170 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTD_decodeLiteralsBlock()
193 …if (lhSize+litSize+WILDCOPY_OVERLENGTH > srcSize) { /* risk reading beyond src buffer with wildco… in ZSTD_decodeLiteralsBlock()
198 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTD_decodeLiteralsBlock()
227 memset(dctx->litBuffer, istart[lhSize], litSize + WILDCOPY_OVERLENGTH); in ZSTD_decodeLiteralsBlock()
667 BYTE* const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequenceEnd()
709 …BYTE* const oend_w = oend - WILDCOPY_OVERLENGTH; /* risk : address space underflow on oend=NULL … in ZSTD_execSequence()
723 (MEM_32bits() && (size_t)(oend - op) < sequenceLength + WILDCOPY_OVERLENGTH))) in ZSTD_execSequence()
738 assert(WILDCOPY_OVERLENGTH >= 16); in ZSTD_execSequence()
H A Dzstd_decompress_internal.h160 BYTE litBuffer[ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH];
H A Dzstd_decompress.c1488 unsigned long long const neededRBSize = windowSize + blockSize + (WILDCOPY_OVERLENGTH * 2); in ZSTD_decodingBufferSize_min()
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v06.c543 #define WILDCOPY_OVERLENGTH 8 macro
2822 BYTE litBuffer[ZSTDv06_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH];
2859 …sizeof(ZSTDv06_DCtx) - (ZSTDv06_BLOCKSIZE_MAX+WILDCOPY_OVERLENGTH + ZSTDv06_frameHeaderSize_max));… in ZSTDv06_copyDCtx()
3100 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv06_decodeLiteralsBlock()
3122 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv06_decodeLiteralsBlock()
3142 …if (lhSize+litSize+WILDCOPY_OVERLENGTH > srcSize) { /* risk reading beyond src buffer with wildco… in ZSTDv06_decodeLiteralsBlock()
3147 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv06_decodeLiteralsBlock()
3173 memset(dctx->litBuffer, istart[lhSize], litSize + WILDCOPY_OVERLENGTH); in ZSTDv06_decodeLiteralsBlock()
4066 … const neededOutSize = ((size_t)1 << zbd->fParams.windowLog) + blockSize + WILDCOPY_OVERLENGTH * 2; in ZBUFFv06_decompressContinue()
H A Dzstd_v07.c2776 #define WILDCOPY_OVERLENGTH 8 macro
2952 BYTE litBuffer[ZSTDv07_BLOCKSIZE_ABSOLUTEMAX + WILDCOPY_OVERLENGTH];
3009 …sizeof(ZSTDv07_DCtx) - (ZSTDv07_BLOCKSIZE_ABSOLUTEMAX+WILDCOPY_OVERLENGTH + ZSTDv07_frameHeaderSiz… in ZSTDv07_copyDCtx()
3330 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv07_decodeLiteralsBlock()
3352 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv07_decodeLiteralsBlock()
3372 …if (lhSize+litSize+WILDCOPY_OVERLENGTH > srcSize) { /* risk reading beyond src buffer with wildco… in ZSTDv07_decodeLiteralsBlock()
3377 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv07_decodeLiteralsBlock()
3403 memset(dctx->litBuffer, istart[lhSize], litSize + WILDCOPY_OVERLENGTH); in ZSTDv07_decodeLiteralsBlock()
3597 BYTE* const oend_w = oend-WILDCOPY_OVERLENGTH; in ZSTDv07_execSequence()
4450 … { size_t const neededOutSize = zbd->fParams.windowSize + blockSize + WILDCOPY_OVERLENGTH * 2; in ZBUFFv07_decompressContinue()
H A Dzstd_v05.c493 #define WILDCOPY_OVERLENGTH 8 macro
2661 BYTE litBuffer[BLOCKSIZE + WILDCOPY_OVERLENGTH];
2698 …sizeof(ZSTDv05_DCtx) - (BLOCKSIZE+WILDCOPY_OVERLENGTH + ZSTDv05_frameHeaderSize_max)); /* no need… in ZSTDv05_copyDCtx()
2909 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv05_decodeLiteralsBlock()
2933 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv05_decodeLiteralsBlock()
2954 …if (lhSize+litSize+WILDCOPY_OVERLENGTH > srcSize) { /* risk reading beyond src buffer with wildco… in ZSTDv05_decodeLiteralsBlock()
2959 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTDv05_decodeLiteralsBlock()
2986 memset(dctx->litBuffer, istart[lhSize], litSize + WILDCOPY_OVERLENGTH); in ZSTDv05_decodeLiteralsBlock()
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dzstd_internal.h248 #define WILDCOPY_OVERLENGTH 32 macro
/freebsd/sys/contrib/zstd/lib/common/
H A Dzstd_internal.h201 #define WILDCOPY_OVERLENGTH 32 macro
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_internal.h442 BYTE const* const litLimit_w = litLimit - WILDCOPY_OVERLENGTH; in ZSTD_storeSeq()
461 assert(WILDCOPY_OVERLENGTH >= 16); in ZSTD_storeSeq()
H A Dzstd_compress.c1135 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams()
1445 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_resetCCtx_internal()
1534 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_internal.h605 BYTE const* const litLimit_w = litLimit - WILDCOPY_OVERLENGTH; in ZSTD_storeSeq()
624 assert(WILDCOPY_OVERLENGTH >= 16); in ZSTD_storeSeq()
H A Dzstd_compress.c1471 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1939 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()