/external/zstd/lib/decompress/ |
D | zstd_decompress.c | 172 RETURN_ERROR_IF(dctx->staticSize, memory_allocation, "not compatible with static DCtx"); in ZSTD_freeDCtx() 224 RETURN_ERROR_IF(srcSize < minInputSize, srcSize_wrong, ""); in ZSTD_frameHeaderSize_internal() 259 RETURN_ERROR_IF(src==NULL, GENERIC, "invalid parameter"); in ZSTD_getFrameHeader_advanced() 290 RETURN_ERROR_IF((fhdByte & 0x08) != 0, frameParameter_unsupported, in ZSTD_getFrameHeader_advanced() 296 RETURN_ERROR_IF(windowLog > ZSTD_WINDOWLOG_MAX, frameParameter_windowTooLarge, ""); in ZSTD_getFrameHeader_advanced() 368 RETURN_ERROR_IF(srcSize < ZSTD_SKIPPABLEHEADERSIZE, srcSize_wrong, ""); in readSkippableFrameSize() 371 RETURN_ERROR_IF((U32)(sizeU32 + ZSTD_SKIPPABLEHEADERSIZE) < sizeU32, in readSkippableFrameSize() 375 RETURN_ERROR_IF(skippableSize > srcSize, srcSize_wrong, ""); in readSkippableFrameSize() 449 RETURN_ERROR_IF(result>0, srcSize_wrong, "headerSize too small"); in ZSTD_decodeFrameHeader() 454 RETURN_ERROR_IF(dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID), in ZSTD_decodeFrameHeader() [all …]
|
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 …]
|
D | zstd_ddict.c | 112 RETURN_ERROR_IF(ZSTD_isError(ZSTD_loadDEntropy( in ZSTD_loadEntropy_intoDDict()
|
/external/zstd/lib/compress/ |
D | zstd_compress.c | 163 RETURN_ERROR_IF(cctx->staticSize, memory_allocation, in ZSTD_freeCCtx() 265 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init() 274 RETURN_ERROR_IF(!cctxParams, GENERIC, "NULL pointer!"); in ZSTD_CCtxParams_init_advanced() 490 RETURN_ERROR_IF(!ZSTD_cParam_withinBounds(cParam,val), \ 550 RETURN_ERROR_IF((value!=0) && cctx->staticSize, parameter_unsupported, in ZSTD_CCtx_setParameter() 689 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 699 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 713 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 723 RETURN_ERROR_IF(value!=0, parameter_unsupported, "not compiled with multithreading"); in ZSTD_CCtxParams_setParameter() 758 RETURN_ERROR_IF(value > ZSTD_WINDOWLOG_MAX - ZSTD_HASHLOG_MIN, in ZSTD_CCtxParams_setParameter() [all …]
|
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()
|
D | zstd_compress_sequences.c | 251 RETURN_ERROR_IF(dstCapacity==0, dstSize_tooSmall, "not enough space"); in ZSTD_buildCTable() 294 RETURN_ERROR_IF( in ZSTD_encodeSequences_body() 370 RETURN_ERROR_IF(streamSize==0, dstSize_tooSmall, "not enough space"); in ZSTD_encodeSequences_body()
|
D | zstd_cwksp.h | 492 RETURN_ERROR_IF(workspace == NULL, memory_allocation, "NULL pointer!"); in ZSTD_cwksp_create()
|
D | zstd_compress_internal.h | 435 RETURN_ERROR_IF(srcSize + ZSTD_blockHeaderSize > dstCapacity, in ZSTD_noCompressBlock() 446 RETURN_ERROR_IF(dstCapacity < 4, dstSize_tooSmall, ""); in ZSTD_rleCompressBlock()
|
D | zstd_compress_superblock.c | 454 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/, in ZSTD_compressSubBlock_sequences()
|
/external/zstd/tests/ |
D | fullbench.c | 141 RETURN_ERROR_IF(srcSize < MIN_CBLOCK_SIZE, corruption_detected, ""); in ZSTD_decodeLiteralsHeader() 146 …RETURN_ERROR_IF(srcSize < 5, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 3; here we need u… in ZSTD_decodeLiteralsHeader() 172 RETURN_ERROR_IF(litSize > ZSTD_BLOCKSIZE_MAX, corruption_detected, ""); in ZSTD_decodeLiteralsHeader() 173 RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, ""); in ZSTD_decodeLiteralsHeader()
|
D | decodecorpus.c | 942 RETURN_ERROR_IF( in writeSequences()
|
/external/zstd/lib/common/ |
D | zstd_internal.h | 91 #define RETURN_ERROR_IF(cond, err, ...) \ macro
|