Home
last modified time | relevance | path

Searched refs:WILDCOPY_OVERLENGTH (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/lib/zstd/decompress/
H A Dzstd_decompress_block.c76 if (streaming == not_streaming && dstCapacity > ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH + litSize + WILDCOPY_OVERLENGTH) in ZSTD_allocateLiteralsBuffer()
79 dctx->litBuffer = (BYTE*)dst + ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer()
88 dctx->litBuffer = (BYTE*)dst + expectedWriteSize - litSize + ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer()
210 ZSTD_memmove(dctx->litBuffer + ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OVERLENGTH, dctx->litBuffer, litSize - ZSTD_LITBUFFEREXTRASIZE); 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 wildcopy */ in ZSTD_decodeLiteralsBlock()
782 * Specialized version of memcpy() that is allowed to READ up to WILDCOPY_OVERLENGTH past the input buffer
842 if (op <= oend - WILDCOPY_OVERLENGTH in ZSTD_safecopyDstBeforeSrc()
[all...]
H A Dzstd_decompress_internal.h188 BYTE litExtraBuffer[ZSTD_LITBUFFEREXTRASIZE + WILDCOPY_OVERLENGTH]; /* literal buffer can be split between storage within dst and within this scratch buffer */
H A Dzstd_decompress.c1777 unsigned long long const neededRBSize = windowSize + blockSize + ZSTD_BLOCKSIZE_MAX + (WILDCOPY_OVERLENGTH * 2); in ZSTD_decodingBufferSize_min()
/kernel/linux/linux-5.10/lib/zstd/
H A Ddecompress.c100 BYTE litBuffer[ZSTD_BLOCKSIZE_ABSOLUTEMAX + WILDCOPY_OVERLENGTH];
157 size_t const workSpaceSize = (ZSTD_BLOCKSIZE_ABSOLUTEMAX + WILDCOPY_OVERLENGTH) + ZSTD_frameHeaderSize_max; in ZSTD_copyDCtx()
498 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTD_decodeLiteralsBlock()
522 if (lhSize + litSize + WILDCOPY_OVERLENGTH > srcSize) { /* risk reading beyond src buffer with wildcopy */ in ZSTD_decodeLiteralsBlock()
528 memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); in ZSTD_decodeLiteralsBlock()
560 memset(dctx->litBuffer, istart[lhSize], litSize + WILDCOPY_OVERLENGTH); in ZSTD_decodeLiteralsBlock()
886 BYTE *const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequenceLast7()
892 return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance of WILDCOPY_OVERLENGTH from oend */ in ZSTD_execSequenceLast7()
1013 BYTE *const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequence()
1019 return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance of WILDCOPY_OVERLENGTH fro in ZSTD_execSequence()
[all...]
H A Dzstd_internal.h141 #define WILDCOPY_OVERLENGTH 8 macro
/kernel/linux/linux-6.6/lib/zstd/common/
H A Dzstd_internal.h191 #define WILDCOPY_OVERLENGTH 32 macro
201 * Custom version of ZSTD_memcpy(), can over read/write up to WILDCOPY_OVERLENGTH bytes (if length==0)
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress_internal.h552 * memcpy() function that won't read beyond more than WILDCOPY_OVERLENGTH bytes past ilimit_w.
593 BYTE const* const litLimit_w = litLimit - WILDCOPY_OVERLENGTH; in ZSTD_storeSeq()
612 assert(WILDCOPY_OVERLENGTH >= 16); in ZSTD_storeSeq()
H A Dzstd_compress.c1402 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1858 * so we have to oversize the buffer by WILDCOPY_OVERLENGTH bytes. in ZSTD_resetCCtx_internal()
1860 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()

Completed in 24 milliseconds