Home
last modified time | relevance | path

Searched refs:oend (Results 1 – 22 of 22) sorted by relevance

/freebsd-12-stable/sys/contrib/zstd/tests/
Dseqgen.c53 BYTE* const oend = ostart + out->size; in SEQ_gen_matchLength() local
59 if (op >= oend) { in SEQ_gen_matchLength()
74 size_t const setLength = MIN(stream->bytesLeft, (size_t)(oend - op)); in SEQ_gen_matchLength()
88 if (op >= oend) { in SEQ_gen_matchLength()
122 BYTE* const oend = ostart + out->size; in SEQ_gen_litLength() local
132 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_litLength()
143 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_litLength()
154 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_litLength()
187 BYTE* const oend = ostart + out->size; in SEQ_gen_offset() local
197 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_offset()
[all …]
Ddecodecorpus.c810 BYTE* const oend = (BYTE*)frame->dataEnd; in writeSequences() local
818 if ((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead */) return ERROR(dstSize_tooSmall); in writeSequences()
858 …{ size_t const NCountSize = FSE_writeNCount(op, oend-op, norm, max, tableLog); /* overflow prote… in writeSequences()
885 …{ size_t const NCountSize = FSE_writeNCount(op, oend-op, norm, max, tableLog); /* overflow prote… in writeSequences()
914 …{ size_t const NCountSize = FSE_writeNCount(op, oend-op, norm, max, tableLog); /* overflow prote… in writeSequences()
935 …CHECK_E(BIT_initCStream(&blockStream, op, oend-op), dstSize_tooSmall); /* not enough space remaini… in writeSequences()
/freebsd-12-stable/sys/cddl/contrib/opensolaris/common/lz4/
Dlz4.c495 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx() local
552 (length >> 8) > oend) in LZ4_compressCtx()
602 if unlikely(op + (1 + LASTLITERALS) + (len >> 8) > oend) in LZ4_compressCtx()
645 oend) in LZ4_compressCtx()
690 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compress64kCtx() local
745 (length >> 8) > oend) in LZ4_compress64kCtx()
795 if unlikely(op + (1 + LASTLITERALS) + (len >> 8) > oend) in LZ4_compress64kCtx()
838 oend) in LZ4_compress64kCtx()
915 BYTE *const oend = op + maxOutputSize; in LZ4_uncompress_unknownOutputSize() local
942 if ((cpy > oend - COPYLENGTH) || in LZ4_uncompress_unknownOutputSize()
[all …]
/freebsd-12-stable/sys/contrib/zstd/lib/compress/
Dhuf_compress.c88 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() local
112 { CHECK_V_F(hSize, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) ); in HUF_compressWeights()
118 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, weightTable, wtSize, CTable) ); in HUF_compressWeights()
464 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() local
471 { size_t const initErr = BIT_initCStream(&bitC, op, oend-op); in HUF_compress1X_usingCTable_internal_body()
561 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() local
568 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, oend-op, ip, segmentSize, CTable, bmi… in HUF_compress4X_usingCTable_internal()
576 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, oend-op, ip, segmentSize, CTable, bmi… in HUF_compress4X_usingCTable_internal()
584 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, oend-op, ip, segmentSize, CTable, bmi… in HUF_compress4X_usingCTable_internal()
592 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, oend-op, ip, iend-ip, CTable, bmi2) ); in HUF_compress4X_usingCTable_internal()
[all …]
Dfse_compress.c192 BYTE* const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() local
220 … if ((!writeIsSafe) && (out > oend-2)) return ERROR(dstSize_tooSmall); /* Buffer overflow */ in FSE_writeNCount_generic()
234 … if ((!writeIsSafe) && (out > oend - 2)) return ERROR(dstSize_tooSmall); /* Buffer overflow */ in FSE_writeNCount_generic()
254 … if ((!writeIsSafe) && (out > oend - 2)) return ERROR(dstSize_tooSmall); /* Buffer overflow */ in FSE_writeNCount_generic()
263 if ((!writeIsSafe) && (out > oend - 2)) return ERROR(dstSize_tooSmall); /* Buffer overflow */ in FSE_writeNCount_generic()
787 BYTE* const oend = ostart + dstSize; in FSE_compress_wksp() local
813 { CHECK_V_F(nc_err, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) ); in FSE_compress_wksp()
819 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, src, srcSize, CTable) ); in FSE_compress_wksp()
Dzstd_compress.c1521 BYTE const* const oend = op + dstCapacity; in ZSTD_buildCTable() local
1544 …{ size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow p… in ZSTD_buildCTable()
1719 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSequences_internal() local
1742 if ((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/) return ERROR(dstSize_tooSmall); in ZSTD_compressSequences_internal()
1770 …{ size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_LitLength, LLFSELog, (symbolEn… in ZSTD_compressSequences_internal()
1785 …{ size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_OffsetBits, OffFSELog, (symbol… in ZSTD_compressSequences_internal()
1798 …{ size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_MatchLength, MLFSELog, (symbol… in ZSTD_compressSequences_internal()
1809 op, oend - op, in ZSTD_compressSequences_internal()
3044 char* const oend = ostart + output->size; in ZSTD_compressStream_generic() local
3066 && ((size_t)(oend-op) >= ZSTD_compressBound(iend-ip)) /* enough dstCapacity */ in ZSTD_compressStream_generic()
[all …]
Dzstdmt_compress.c663 BYTE* oend = op + dstBuff.capacity; in ZSTDMT_compressionJob() local
669 size_t const cSize = ZSTD_compressContinue(cctx, op, oend-op, ip, chunkSize); in ZSTDMT_compressionJob()
672 op += cSize; assert(op < oend); in ZSTDMT_compressionJob()
688 ZSTD_compressEnd (cctx, op, oend-op, ip, lastBlockSize) : in ZSTDMT_compressionJob()
689 ZSTD_compressContinue(cctx, op, oend-op, ip, lastBlockSize); in ZSTDMT_compressionJob()
/freebsd-12-stable/sys/contrib/zstd/lib/legacy/
Dzstd_v01.c1362 BYTE* const oend = op + length; in ZSTD_wildcopy() local
1363 while (op < oend) COPY8(op, ip); in ZSTD_wildcopy()
1494 BYTE* const oend = op + maxDstSize; in ZSTD_decompressLiterals() local
1504 op = oend - litSize; in ZSTD_decompressLiterals()
1522 BYTE* const oend = ostart + maxDstSize; in ZSTDv01_decodeLiteralsBlock() local
1542 memset(oend - rleSize, *ip, rleSize); in ZSTDv01_decodeLiteralsBlock()
1543 *litStart = oend - rleSize; in ZSTDv01_decodeLiteralsBlock()
1552 *litStart = oend - decodedLitSize; in ZSTDv01_decodeLiteralsBlock()
1751 BYTE* const base, BYTE* const oend) in ZSTD_execSequence() argument
1761 if (endMatch > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */ in ZSTD_execSequence()
[all …]
Dzstd_v02.c1716 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local
1759 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable()
1791 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable()
2078 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local
2121 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable()
2153 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable()
2433 BYTE* const oend = ostart + dstSize; in HUF_decompress4X6_usingDTable() local
2478 for ( ; (op3 <= opStart4) && (endSignal==BIT_DStream_unfinished) && (op4<=(oend-16)) ; ) in HUF_decompress4X6_usingDTable()
2510 HUF_decodeStreamX6(op4, &bitD4, oend, DTable, dtLog); in HUF_decompress4X6_usingDTable()
2743 BYTE* const oend = op + length; in ZSTD_wildcopy() local
[all …]
Dzstd_v05.c510 BYTE* const oend = op + length; in ZSTDv05_wildcopy() local
513 while (op < oend); in ZSTDv05_wildcopy()
1959 BYTE* const oend = op + dstSize; in HUFv05_decompress1X2_usingDTable() local
1969 HUFv05_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv05_decompress1X2_usingDTable()
2000 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X2_usingDTable() local
2045 for ( ; (endSignal==BITv05_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv05_decompress4X2_usingDTable()
2075 HUFv05_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv05_decompress4X2_usingDTable()
2338 BYTE* const oend = ostart + dstSize; in HUFv05_decompress1X4_usingDTable() local
2351 HUFv05_decodeStreamX4(ostart, &bitD, oend, dt, dtLog); in HUFv05_decompress1X4_usingDTable()
2384 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X4_usingDTable() local
[all …]
Dzstd_v06.c545 BYTE* const oend = op + length; in ZSTDv06_wildcopy() local
548 while (op < oend); in ZSTDv06_wildcopy()
2098 BYTE* const oend = op + dstSize; in HUFv06_decompress1X2_usingDTable() local
2107 HUFv06_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv06_decompress1X2_usingDTable()
2140 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X2_usingDTable() local
2182 for ( ; (endSignal==BITv06_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv06_decompress4X2_usingDTable()
2212 HUFv06_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv06_decompress4X2_usingDTable()
2471 BYTE* const oend = ostart + dstSize; in HUFv06_decompress1X4_usingDTable() local
2483 HUFv06_decodeStreamX4(ostart, &bitD, oend, dt, dtLog); in HUFv06_decompress1X4_usingDTable()
2515 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X4_usingDTable() local
[all …]
Dzstd_v03.c1713 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local
1756 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable()
1788 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable()
2075 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local
2118 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable()
2150 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable()
2384 BYTE* const oend = op + length; in ZSTD_wildcopy() local
2385 do COPY8(op, ip) while (op < oend); in ZSTD_wildcopy()
2731 BYTE* const base, BYTE* const oend) in ZSTD_execSequence() argument
2738 BYTE* const oend_8 = oend-8; in ZSTD_execSequence()
[all …]
Dzstd_v04.c446 BYTE* const oend = op + length; in ZSTD_wildcopy() local
449 while (op < oend); in ZSTD_wildcopy()
1927 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local
1969 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable()
2001 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable()
2285 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local
2327 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable()
2359 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable()
2916 BYTE* const oend, seq_t sequence, in ZSTD_execSequence() argument
2925 BYTE* const oend_8 = oend-8; in ZSTD_execSequence()
[all …]
Dzstd_v07.c1873 BYTE* const oend = op + dstSize; in HUFv07_decompress1X2_usingDTable_internal() local
1883 HUFv07_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv07_decompress1X2_usingDTable_internal()
1930 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X2_usingDTable_internal() local
1971 for ( ; (endSignal==BITv07_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv07_decompress4X2_usingDTable_internal()
2001 HUFv07_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv07_decompress4X2_usingDTable_internal()
2289 BYTE* const oend = ostart + dstSize; in HUFv07_decompress1X4_usingDTable_internal() local
2293 HUFv07_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); in HUFv07_decompress1X4_usingDTable_internal()
2340 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X4_usingDTable_internal() local
2381 for ( ; (endSignal==BITv07_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv07_decompress4X4_usingDTable_internal()
2412 HUFv07_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUFv07_decompress4X4_usingDTable_internal()
[all …]
/freebsd-12-stable/sys/contrib/zstd/lib/common/
Dzstd_internal.h196 BYTE* const oend = op + length; in ZSTD_wildcopy() local
199 while (op < oend); in ZSTD_wildcopy()
206 BYTE* const oend = (BYTE*)dstEnd; in ZSTD_wildcopy_e() local
209 while (op < oend); in ZSTD_wildcopy_e()
/freebsd-12-stable/lib/libc/iconv/
Dcitrus_prop.c352 _citrus_prop_object_t ostart, oend; in _citrus_prop_parse_element() local
369 _citrus_prop_object_init(&oend, hint->type); in _citrus_prop_parse_element()
383 errnum = (*readers[hint->type])(ms, &oend); in _citrus_prop_parse_element()
397 hint->name, ostart.u._func_, oend.u._func_);\ in _citrus_prop_parse_element()
419 _citrus_prop_object_uninit(&oend); in _citrus_prop_parse_element()
/freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/lz4/
Dlz4.c748 BYTE* const oend = op + targetDstSize; in LZ4_compress_destSize_generic() local
862 …op + 1 /* token */ + ((lastRunSize+240)/255) /* litLength */ + lastRunSize /* literals */ > oend) { in LZ4_compress_destSize_generic()
864 lastRunSize = (oend-op) - 1; in LZ4_compress_destSize_generic()
1119 BYTE* const oend = op + outputSize; in LZ4_decompress_generic() local
1133 …if ((partialDecoding) && (oexit > oend-MFLIMIT)) oexit = oend-MFLIMIT; /* t… in LZ4_decompress_generic()
1157 …if ( ((endOnInput) && ((cpy>(partialDecoding?oexit:oend-MFLIMIT)) || (ip+length>iend-(2+1+LASTLITE… in LZ4_decompress_generic()
1158 || ((!endOnInput) && (cpy>oend-WILDCOPYLENGTH)) ) in LZ4_decompress_generic()
1161 …if (cpy > oend) goto _output_error; /* Error : write attempt beyond end … in LZ4_decompress_generic()
1164 …if ((!endOnInput) && (cpy != oend)) goto _output_error; /* Error : block decoding must stop … in LZ4_decompress_generic()
1165 …if ((endOnInput) && ((ip+length != iend) || (cpy > oend))) goto _output_error; /* Error : input … in LZ4_decompress_generic()
[all …]
/freebsd-12-stable/sys/contrib/zstd/lib/decompress/
Dzstd_decompress.c1029 BYTE* const oend, seq_t sequence, in ZSTD_execSequenceLast7() argument
1036 BYTE* const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequenceLast7()
1041 …if (oMatchEnd>oend) return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance… in ZSTD_execSequenceLast7()
1076 BYTE* const oend, seq_t sequence, in ZSTD_execSequence() argument
1083 BYTE* const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequence()
1088 …if (oMatchEnd>oend) return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance… in ZSTD_execSequence()
1090 …if (oLitEnd>oend_w) return ZSTD_execSequenceLast7(op, oend, sequence, litPtr, litLimit, base, vBas… in ZSTD_execSequence()
1141 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTD_execSequence()
1157 BYTE* const oend, seq_t sequence, in ZSTD_execSequenceLong() argument
1164 BYTE* const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequenceLong()
[all …]
Dhuf_decompress.c198 BYTE* const oend = op + dstSize; in HUF_decompress1X2_usingDTable_internal_body() local
207 HUF_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUF_decompress1X2_usingDTable_internal_body()
225 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal_body() local
262 while ( (endSignal==BIT_DStream_unfinished) && (op4<(oend-3)) ) { in HUF_decompress4X2_usingDTable_internal_body()
297 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable_internal_body()
385 BYTE* const oend = ostart + dstSize; in HUF_decompress1X4_usingDTable_internal_body() local
389 HUF_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X4_usingDTable_internal_body()
410 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable_internal_body() local
447 … for ( ; (endSignal==BIT_DStream_unfinished) & (op4<(oend-(sizeof(bitD4.bitContainer)-1))) ; ) { in HUF_decompress4X4_usingDTable_internal_body()
478 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable_internal_body()
/freebsd-12-stable/sbin/sunlabel/
Dsunlabel.c264 uint64_t oend; in check_label() local
316 oend = ostart + sl->sl_part[j].sdkp_nsectors; in check_label()
317 if ((start <= ostart && end >= oend) || in check_label()
318 (start > ostart && start < oend) || in check_label()
319 (end > ostart && end < oend)) { in check_label()
/freebsd-12-stable/usr.sbin/pmcannotate/
Dpmcannotate.c683 uintptr_t tmppc, ostart, oend; in main() local
769 oend = (uintptr_t)hend; in main()
777 obj = entry_create(fname, tmppc, ostart, oend); in main()
/freebsd-12-stable/sys/geom/journal/
Dg_journal.c1478 off_t oend) in g_journal_read_find() argument
1487 cend = MIN(oend, bp->bio_offset + bp->bio_length); in g_journal_read_find()
1490 else if (cstart >= oend) { in g_journal_read_find()
1529 off_t oend) in g_journal_read() argument
1535 GJ_DEBUG(3, "READ: (%jd, %jd)", ostart, oend); in g_journal_read()
1566 bp = g_journal_read_find(head, sorted, pbp, ostart, oend); in g_journal_read()
1572 cend = MIN(oend, bp->bio_offset + bp->bio_length); in g_journal_read()
1596 if (oend > cend) in g_journal_read()
1597 g_journal_read(sc, pbp, cend, oend); in g_journal_read()
1603 GJ_DEBUG(3, "READ(data): (%jd, %jd)", ostart, oend); in g_journal_read()
[all …]