Home
last modified time | relevance | path

Searched refs:RETURN_ERROR_IF (Results 1 – 11 of 11) sorted by relevance

/linux/lib/zstd/decompress/
H A Dzstd_decompress.c104RETURN_ERROR_IF(hashSet->ddictPtrCount == hashSet->ddictPtrTableSize, GENERIC, "Hash set is full!"… in ZSTD_DDictHashSet_emplaceDDict()
134 RETURN_ERROR_IF(!newTable, memory_allocation, "Expanded hashset allocation failed!"); in ZSTD_DDictHashSet_expand()
318 RETURN_ERROR_IF(dctx->staticSize, memory_allocation, "not compatible with static DCtx"); in ZSTD_freeDCtx()
403 RETURN_ERROR_IF(srcSize < minInputSize, srcSize_wrong, ""); in ZSTD_frameHeaderSize_internal()
440 RETURN_ERROR_IF(src==NULL, GENERIC, "invalid parameter : src==NULL, but srcSize>0"); in ZSTD_getFrameHeader_advanced()
495 RETURN_ERROR_IF((fhdByte & 0x08) != 0, frameParameter_unsupported, in ZSTD_getFrameHeader_advanced()
501 RETURN_ERROR_IF(windowLog > ZSTD_WINDOWLOG_MAX, frameParameter_windowTooLarge, ""); in ZSTD_getFrameHeader_advanced()
570 RETURN_ERROR_IF(srcSize < ZSTD_SKIPPABLEHEADERSIZE, srcSize_wrong, ""); in readSkippableFrameSize()
573 RETURN_ERROR_IF((U32)(sizeU32 + ZSTD_SKIPPABLEHEADERSIZE) < sizeU32, in readSkippableFrameSize()
576 RETURN_ERROR_IF(skippableSize > srcSize, srcSize_wrong, ""); in readSkippableFrameSize()
[all …]
H A Dzstd_decompress_block.c67 RETURN_ERROR_IF(srcSize < ZSTD_blockHeaderSize, srcSize_wrong, ""); in ZSTD_getcBlockSize()
75 RETURN_ERROR_IF(bpPtr->blockType == bt_reserved, corruption_detected, ""); in ZSTD_getcBlockSize()
140 RETURN_ERROR_IF(srcSize < MIN_CBLOCK_SIZE, corruption_detected, ""); in ZSTD_decodeLiteralsBlock()
150 RETURN_ERROR_IF(dctx->litEntropy==0, dictionary_corrupted, ""); in ZSTD_decodeLiteralsBlock()
154RETURN_ERROR_IF(srcSize < 5, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 2; here we need u… in ZSTD_decodeLiteralsBlock()
186 RETURN_ERROR_IF(litSize > 0 && dst == NULL, dstSize_tooSmall, "NULL not handled"); in ZSTD_decodeLiteralsBlock()
187 RETURN_ERROR_IF(litSize > blockSizeMax, corruption_detected, ""); in ZSTD_decodeLiteralsBlock()
189 RETURN_ERROR_IF(litSize < MIN_LITERALS_FOR_4_STREAMS, literals_headerWrong, in ZSTD_decodeLiteralsBlock()
192 RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, ""); in ZSTD_decodeLiteralsBlock()
193 RETURN_ERROR_IF(expectedWriteSize < litSize , dstSize_tooSmall, ""); in ZSTD_decodeLiteralsBlock()
[all …]
H A Dzstd_ddict.c110 RETURN_ERROR_IF(ZSTD_isError(ZSTD_loadDEntropy( in ZSTD_loadEntropy_intoDDict()
/linux/lib/zstd/compress/
H A Dzstd_compress.c180 RETURN_ERROR_IF(cctx->staticSize, memory_allocation, in ZSTD_freeCCtx()
354 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init()
392 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init_advanced()
635 RETURN_ERROR_IF(!ZSTD_cParam_withinBounds(cParam,val), \
703 RETURN_ERROR_IF((value!=0) && cctx->staticSize, parameter_unsupported, in ZSTD_CCtx_setParameter()
849 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter()
853 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter()
857 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter()
861 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter()
1118 RETURN_ERROR_IF(cctx->streamStage != zcss_init, stage_wrong, in ZSTD_CCtx_setParametersUsingCCtxParams()
[all …]
H A Dzstd_compress_literals.c47 RETURN_ERROR_IF(srcSize + flSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_noCompressLiterals()
162 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals()
H A Dzstd_compress_sequences.c259 RETURN_ERROR_IF(dstCapacity==0, dstSize_tooSmall, "not enough space"); in ZSTD_buildCTable()
304 RETURN_ERROR_IF( in ZSTD_encodeSequences_body()
380 RETURN_ERROR_IF(streamSize==0, dstSize_tooSmall, "not enough space"); in ZSTD_encodeSequences_body()
H A Dzstd_cwksp.h318 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 Dzstd_compress_internal.h646 RETURN_ERROR_IF(srcSize + ZSTD_blockHeaderSize > dstCapacity, in ZSTD_noCompressBlock()
658 RETURN_ERROR_IF(dstCapacity < 4, dstSize_tooSmall, ""); in ZSTD_rleCompressBlock()
H A Dzstd_compress_superblock.c182 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/, in ZSTD_compressSubBlock_sequences()
/linux/lib/zstd/common/
H A Derror_private.h106 #define RETURN_ERROR_IF(cond, err, ...) \ macro
H A Dfse_decompress.c194 RETURN_ERROR_IF(BIT_reloadDStream(&bitD)==BIT_DStream_overflow, corruption_detected, ""); in FSE_decompress_usingDTable_generic()