/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 164 RETURN_ERROR_IF(dctx->staticSize, memory_allocation, "not compatible with static DCtx"); in ZSTD_freeDCtx() 216 RETURN_ERROR_IF(srcSize < minInputSize, srcSize_wrong, ""); in ZSTD_frameHeaderSize_internal() 251 RETURN_ERROR_IF(src==NULL, GENERIC, "invalid parameter"); in ZSTD_getFrameHeader_advanced() 282 RETURN_ERROR_IF((fhdByte & 0x08) != 0, frameParameter_unsupported, in ZSTD_getFrameHeader_advanced() 288 RETURN_ERROR_IF(windowLog > ZSTD_WINDOWLOG_MAX, frameParameter_windowTooLarge, ""); in ZSTD_getFrameHeader_advanced() 360 RETURN_ERROR_IF(srcSize < ZSTD_SKIPPABLEHEADERSIZE, srcSize_wrong, ""); in readSkippableFrameSize() 363 RETURN_ERROR_IF((U32)(sizeU32 + ZSTD_SKIPPABLEHEADERSIZE) < sizeU32, in readSkippableFrameSize() 367 RETURN_ERROR_IF(skippableSize > srcSize, srcSize_wrong, ""); in readSkippableFrameSize() 441 RETURN_ERROR_IF(result>0, srcSize_wrong, "headerSize too small"); in ZSTD_decodeFrameHeader() 446 RETURN_ERROR_IF(dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID), in ZSTD_decodeFrameHeader() [all …]
|
H A D | zstd_decompress_block.c | 59 RETURN_ERROR_IF(srcSize < ZSTD_blockHeaderSize, srcSize_wrong, ""); in ZSTD_getcBlockSize() 67 RETURN_ERROR_IF(bpPtr->blockType == bt_reserved, corruption_detected, ""); in ZSTD_getcBlockSize() 83 RETURN_ERROR_IF(srcSize < MIN_CBLOCK_SIZE, corruption_detected, ""); in ZSTD_decodeLiteralsBlock() 92 RETURN_ERROR_IF(dctx->litEntropy==0, dictionary_corrupted, ""); in ZSTD_decodeLiteralsBlock() 96 …RETURN_ERROR_IF(srcSize < 5, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 3; here we need u… in ZSTD_decodeLiteralsBlock() 124 RETURN_ERROR_IF(litSize > ZSTD_BLOCKSIZE_MAX, corruption_detected, ""); in ZSTD_decodeLiteralsBlock() 125 RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, ""); in ZSTD_decodeLiteralsBlock() 163 RETURN_ERROR_IF(HUF_isError(hufSuccess), corruption_detected, ""); in ZSTD_decodeLiteralsBlock() 193 RETURN_ERROR_IF(litSize+lhSize > srcSize, corruption_detected, ""); in ZSTD_decodeLiteralsBlock() 222 …RETURN_ERROR_IF(srcSize<4, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 3; here we need lhS… in ZSTD_decodeLiteralsBlock() [all …]
|
H A D | zstd_ddict.c | 112 RETURN_ERROR_IF(ZSTD_isError(ZSTD_loadDEntropy( in ZSTD_loadEntropy_intoDDict()
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 107 …RETURN_ERROR_IF(hashSet->ddictPtrCount == hashSet->ddictPtrTableSize, GENERIC, "Hash set is full!"… in ZSTD_DDictHashSet_emplaceDDict() 137 RETURN_ERROR_IF(!newTable, memory_allocation, "Expanded hashset allocation failed!"); in ZSTD_DDictHashSet_expand() 322 RETURN_ERROR_IF(dctx->staticSize, memory_allocation, "not compatible with static DCtx"); in ZSTD_freeDCtx() 414 RETURN_ERROR_IF(srcSize < minInputSize, srcSize_wrong, ""); in ZSTD_frameHeaderSize_internal() 449 RETURN_ERROR_IF(src==NULL, GENERIC, "invalid parameter"); in ZSTD_getFrameHeader_advanced() 480 RETURN_ERROR_IF((fhdByte & 0x08) != 0, frameParameter_unsupported, in ZSTD_getFrameHeader_advanced() 486 RETURN_ERROR_IF(windowLog > ZSTD_WINDOWLOG_MAX, frameParameter_windowTooLarge, ""); in ZSTD_getFrameHeader_advanced() 561 RETURN_ERROR_IF(srcSize < ZSTD_SKIPPABLEHEADERSIZE, srcSize_wrong, ""); in readSkippableFrameSize() 564 RETURN_ERROR_IF((U32)(sizeU32 + ZSTD_SKIPPABLEHEADERSIZE) < sizeU32, in readSkippableFrameSize() 568 RETURN_ERROR_IF(skippableSize > srcSize, srcSize_wrong, ""); in readSkippableFrameSize() [all …]
|
H A D | zstd_decompress_block.c | 59 RETURN_ERROR_IF(srcSize < ZSTD_blockHeaderSize, srcSize_wrong, ""); in ZSTD_getcBlockSize() 67 RETURN_ERROR_IF(bpPtr->blockType == bt_reserved, corruption_detected, ""); in ZSTD_getcBlockSize() 124 RETURN_ERROR_IF(srcSize < MIN_CBLOCK_SIZE, corruption_detected, ""); in ZSTD_decodeLiteralsBlock() 133 RETURN_ERROR_IF(dctx->litEntropy==0, dictionary_corrupted, ""); in ZSTD_decodeLiteralsBlock() 137 …RETURN_ERROR_IF(srcSize < 5, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 3; here we need u… in ZSTD_decodeLiteralsBlock() 166 RETURN_ERROR_IF(litSize > 0 && dst == NULL, dstSize_tooSmall, "NULL not handled"); in ZSTD_decodeLiteralsBlock() 167 RETURN_ERROR_IF(litSize > ZSTD_BLOCKSIZE_MAX, corruption_detected, ""); in ZSTD_decodeLiteralsBlock() 168 RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, ""); in ZSTD_decodeLiteralsBlock() 169 RETURN_ERROR_IF(expectedWriteSize < litSize , dstSize_tooSmall, ""); in ZSTD_decodeLiteralsBlock() 215 RETURN_ERROR_IF(HUF_isError(hufSuccess), corruption_detected, ""); in ZSTD_decodeLiteralsBlock() [all …]
|
H A D | zstd_ddict.c | 112 RETURN_ERROR_IF(ZSTD_isError(ZSTD_loadDEntropy( in ZSTD_loadEntropy_intoDDict()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 150 RETURN_ERROR_IF(cctx->staticSize, memory_allocation, in ZSTD_freeCCtx() 236 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init() 245 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init_advanced() 440 RETURN_ERROR_IF(!ZSTD_cParam_withinBounds(cParam,val), \ 495 RETURN_ERROR_IF((value!=0) && cctx->staticSize, parameter_unsupported, in ZSTD_CCtx_setParameter() 628 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 638 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 652 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 662 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 693 RETURN_ERROR_IF(value > ZSTD_WINDOWLOG_MAX - ZSTD_HASHLOG_MIN, in ZSTD_CCtxParams_setParameter() [all …]
|
H A D | zstd_compress_literals.c | 21 RETURN_ERROR_IF(srcSize + flSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_noCompressLiterals() 100 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals()
|
H A D | zstd_compress_sequences.c | 238 RETURN_ERROR_IF(dstCapacity==0, dstSize_tooSmall, "not enough space"); in ZSTD_buildCTable() 280 RETURN_ERROR_IF( in ZSTD_encodeSequences_body() 356 RETURN_ERROR_IF(streamSize==0, dstSize_tooSmall, "not enough space"); in ZSTD_encodeSequences_body()
|
H A D | zstd_cwksp.h | 461 RETURN_ERROR_IF(workspace == NULL, memory_allocation, "NULL pointer!"); in ZSTD_cwksp_create()
|
H A D | zstd_compress_internal.h | 372 RETURN_ERROR_IF(srcSize + ZSTD_blockHeaderSize > dstCapacity, in ZSTD_noCompressBlock() 383 RETURN_ERROR_IF(dstCapacity < 4, dstSize_tooSmall, ""); in ZSTD_rleCompressBlock()
|
H A D | zstd_compress_superblock.c | 454 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/, in ZSTD_compressSubBlock_sequences()
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress.c | 178 RETURN_ERROR_IF(cctx->staticSize, memory_allocation, in ZSTD_freeCCtx() 332 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init() 364 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init_advanced() 594 RETURN_ERROR_IF(!ZSTD_cParam_withinBounds(cParam,val), \ 657 RETURN_ERROR_IF((value!=0) && cctx->staticSize, parameter_unsupported, in ZSTD_CCtx_setParameter() 799 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 809 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 823 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 833 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 1068 RETURN_ERROR_IF(cctx->streamStage != zcss_init, stage_wrong, in ZSTD_CCtx_setParametersUsingCCtxParams() [all …]
|
H A D | zstd_compress_literals.c | 21 RETURN_ERROR_IF(srcSize + flSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_noCompressLiterals() 101 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals()
|
H A D | zstd_cwksp.h | 298 RETURN_ERROR_IF(!ZSTD_cwksp_reserve_internal_buffer_space(ws, bytesToAlign), in ZSTD_cwksp_internal_advance_phase() 306 RETURN_ERROR_IF(objectEnd > ws->workspaceEnd, memory_allocation, in ZSTD_cwksp_internal_advance_phase() 589 RETURN_ERROR_IF(workspace == NULL, memory_allocation, "NULL pointer!"); in ZSTD_cwksp_create()
|
H A D | zstd_compress_sequences.c | 258 RETURN_ERROR_IF(dstCapacity==0, dstSize_tooSmall, "not enough space"); in ZSTD_buildCTable() 303 RETURN_ERROR_IF( in ZSTD_encodeSequences_body() 379 RETURN_ERROR_IF(streamSize==0, dstSize_tooSmall, "not enough space"); in ZSTD_encodeSequences_body()
|
H A D | zstd_compress_internal.h | 518 RETURN_ERROR_IF(srcSize + ZSTD_blockHeaderSize > dstCapacity, in ZSTD_noCompressBlock() 529 RETURN_ERROR_IF(dstCapacity < 4, dstSize_tooSmall, ""); in ZSTD_rleCompressBlock()
|
H A D | zstd_compress_superblock.c | 177 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/, in ZSTD_compressSubBlock_sequences()
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | error_private.h | 112 #define RETURN_ERROR_IF(cond, err, ...) \ macro
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | zstd_internal.h | 90 #define RETURN_ERROR_IF(cond, err, ...) \ macro
|
/freebsd/sys/contrib/zstd/lib/dictBuilder/ |
H A D | zdict.c | 977 RETURN_ERROR_IF(hSize + minContentSize > dictBufferCapacity, dstSize_tooSmall, in ZDICT_finalizeDictionary()
|