| /linux/lib/lz4/ |
| H A D | lz4_decompress.c | 86 BYTE * const oend = op + outputSize; in LZ4_decompress_generic() local 99 const BYTE *const shortoend = oend - in LZ4_decompress_generic() 223 if (((endOnInput) && ((cpy > oend - MFLIMIT) in LZ4_decompress_generic() 225 || ((!endOnInput) && (cpy > oend - WILDCOPYLENGTH))) { in LZ4_decompress_generic() 227 if (cpy > oend) { in LZ4_decompress_generic() 232 cpy = oend; in LZ4_decompress_generic() 233 length = oend - op; in LZ4_decompress_generic() 246 && (cpy != oend)) { in LZ4_decompress_generic() 256 || (cpy > oend))) { in LZ4_decompress_generic() 278 if (!partialDecoding || (cpy == oend) || (ip >= (iend - 2))) in LZ4_decompress_generic() [all …]
|
| H A D | lz4hc_compress.c | 268 BYTE *oend) in LZ4HC_encodeSequence() argument 279 + length + (2 + 1 + LASTLITERALS)) > oend)) { in LZ4HC_encodeSequence() 307 + (1 + LASTLITERALS) > oend)) { in LZ4HC_encodeSequence() 354 BYTE * const oend = op + maxOutputSize; in LZ4HC_compress_generic() local 402 &anchor, ml, ref, limit, oend)) in LZ4HC_compress_generic() 468 ml, ref, limit, oend)) in LZ4HC_compress_generic() 472 ml2, ref2, limit, oend)) in LZ4HC_compress_generic() 498 ml, ref, limit, oend)) in LZ4HC_compress_generic() 539 ref, limit, oend)) in LZ4HC_compress_generic()
|
| H A D | lz4_compress.c | 538 BYTE * const oend = op + targetDstSize; in LZ4_compress_destSize_generic() local 693 + lastRunSize /* literals */ > oend) { in LZ4_compress_destSize_generic() 695 lastRunSize = (oend - op) - 1; in LZ4_compress_destSize_generic()
|
| /linux/lib/zstd/decompress/ |
| H A D | zstd_decompress_block.c | 840 BYTE* const oend = op + length; in ZSTD_safecopy() local 847 while (op < oend) *op++ = *ip++; in ZSTD_safecopy() 856 assert(op <= oend); in ZSTD_safecopy() 859 if (oend <= oend_w) { in ZSTD_safecopy() 866 assert(oend > oend_w); in ZSTD_safecopy() 872 while (op < oend) *op++ = *ip++; in ZSTD_safecopy() 880 BYTE* const oend = op + length; in ZSTD_safecopyDstBeforeSrc() local 884 while (op < oend) *op++ = *ip++; in ZSTD_safecopyDstBeforeSrc() 888 if (op <= oend - WILDCOPY_OVERLENGTH && diff < -WILDCOPY_VECLEN) { in ZSTD_safecopyDstBeforeSrc() 889 ZSTD_wildcopy(op, ip, oend - WILDCOPY_OVERLENGTH - op, ZSTD_no_overlap); in ZSTD_safecopyDstBeforeSrc() [all …]
|
| H A D | huf_decompress.c | 176 BYTE* oend; member 195 BYTE* const oend = ZSTD_maybeNullPtrAdd((BYTE*)dst, dstSize); in HUF_DecompressFastArgs_init() local 250 if (args->op[3] >= oend) in HUF_DecompressFastArgs_init() 272 args->oend = oend; in HUF_DecompressFastArgs_init() 578 BYTE* const oend = ZSTD_maybeNullPtrAdd(op, dstSize); in HUF_decompress1X1_usingDTable_internal_body() local 587 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog); in HUF_decompress1X1_usingDTable_internal_body() 610 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body() local 611 BYTE* const olimit = oend - 3; in HUF_decompress4X1_usingDTable_internal_body() 641 if (opStart4 > oend) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X1_usingDTable_internal_body() 649 if ((size_t)(oend - op4) >= sizeof(size_t)) { in HUF_decompress4X1_usingDTable_internal_body() [all …]
|
| H A D | zstd_decompress.c | 916 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() local 943 BYTE* oBlockEnd = oend; in ZSTD_decompressFrame() 978 decodedSize = ZSTD_copyRawBlock(op, (size_t)(oend-op), ip, cBlockSize); in ZSTD_decompressFrame() 1981 ZSTD_DStream* zds, char** op, char* oend, in ZSTD_decompressContinueStream() argument 1997 size_t const dstSize = isSkipFrame ? 0 : (size_t)(oend - *op); in ZSTD_decompressContinueStream() 2003 assert(*op <= oend); in ZSTD_decompressContinueStream() 2017 char* const oend = output->size != 0 ? dst + output->size : dst; in ZSTD_decompressStream() local 2081 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) { in ZSTD_decompressStream() 2085 …e_t const decompressedSize = ZSTD_decompress_usingDDict(zds, op, (size_t)(oend-op), istart, cSize,… in ZSTD_decompressStream() 2101 && (U64)(size_t)(oend-op) < zds->fParams.frameContentSize) { in ZSTD_decompressStream() [all …]
|
| /linux/lib/zstd/compress/ |
| H A D | zstd_compress_superblock.c | 52 BYTE* const oend = ostart + dstSize; in ZSTD_compressSubBlock_literal() local 80 …const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, (size_t)(oend-op), literals, li… in ZSTD_compressSubBlock_literal() 81 … : HUF_compress4X_usingCTable(op, (size_t)(oend-op), literals, litSize, hufTable, flags); in ZSTD_compressSubBlock_literal() 174 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences() local 182 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/, in ZSTD_compressSubBlock_sequences() 213 op, (size_t)(oend - op), in ZSTD_compressSubBlock_sequences() 277 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock() local 283 op, (size_t)(oend-op), in ZSTD_compressSubBlock() 294 op, (size_t)(oend-op), in ZSTD_compressSubBlock() 501 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi() local [all …]
|
| H A D | huf_compress.c | 151 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() local 172 …{ CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) … in HUF_compressWeights() 178 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->… in HUF_compressWeights() 1062 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() local 1068 size_t const initErr = HUF_initCStream(&bitC, op, (size_t)(oend-op)); in HUF_compress1X_usingCTable_internal_body() 1174 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() local 1181 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1182 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal() 1189 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1190 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal() [all …]
|
| H A D | fse_compress.c | 241 BYTE* const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() local 269 if ((!writeIsSafe) && (out > oend-2)) in FSE_writeNCount_generic() 284 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 306 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 320 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
|
| H A D | zstd_compress_sequences.c | 253 const BYTE* const oend = op + dstCapacity; in ZSTD_buildCTable() local 280 assert(oend >= op); in ZSTD_buildCTable() 281 …{ size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog);… in ZSTD_buildCTable()
|
| H A D | zstd_compress.c | 2685 const BYTE* const oend = dstEnd; in ZSTD_buildSequencesStatistics() local 2698 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2713 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2728 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2745 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2760 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2766 DEBUGLOG(5, "Building ML table (remaining space : %i)", (int)(oend-op)); in ZSTD_buildSequencesStatistics() 2775 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2790 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2823 BYTE* const oend = ostart + dstCapacity; in ZSTD_entropyCompressSeqStore_internal() local [all …]
|
| /linux/lib/zstd/common/ |
| H A D | zstd_internal.h | 215 BYTE* const oend = op + length; in ZSTD_wildcopy() local 221 } while (op < oend); in ZSTD_wildcopy() 238 while (op < oend); in ZSTD_wildcopy()
|
| /linux/fs/erofs/ |
| H A D | decompressor.c | 115 unsigned int oend, omargin, cnt, i; in z_erofs_lz4_handle_overlap() local 145 oend = rq->pageofs_out + rq->outputsize; in z_erofs_lz4_handle_overlap() 146 omargin = PAGE_ALIGN(oend) - oend; in z_erofs_lz4_handle_overlap()
|