Lines Matching refs:ERROR

386     if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }  in BIT_initDStream()
395 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */ in BIT_initDStream()
421 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */ in BIT_initDStream()
569 #define ERROR(name) (size_t)-PREFIX(name) macro
585 ERR_STATIC unsigned ERR_isError(size_t code) { return (code > ERROR(maxCode)); } in ERR_isError()
1112 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge); in FSE_buildDTable()
1113 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable()
1143 …if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normali… in FSE_buildDTable()
1192 if (hbSize < 4) return ERROR(srcSize_wrong); in FSE_readNCount()
1195 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSE_readNCount()
1230 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall); in FSE_readNCount()
1282 if (remaining != 1) return ERROR(GENERIC); in FSE_readNCount()
1286 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong); in FSE_readNCount()
1322 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSE_buildDTable_raw()
1401 if (op==omax) return ERROR(dstSize_tooSmall); /* dst buffer is full, but cSrc unfinished */ in FSE_decompress_usingDTable_generic()
1403 return ERROR(corruption_detected); in FSE_decompress_usingDTable_generic()
1430 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1435 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1553 if (!srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1570 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1571 if (oSize >= hwSize) return ERROR(corruption_detected); in HUF_readStats()
1582 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1592 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUF_readStats()
1596 if (weightTotal == 0) return ERROR(corruption_detected); in HUF_readStats()
1600 if (tableLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUF_readStats()
1606 …if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 … in HUF_readStats()
1612 …if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construct… in HUF_readStats()
1645 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */ in HUF_readDTableX2()
1722 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X2_usingDTable()
1758 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X2_usingDTable()
1793 if (op1 > opStart2) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1794 if (op2 > opStart3) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1795 if (op3 > opStart4) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1806 if (!endSignal) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1822 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X2()
1943 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge); in HUF_readDTableX4()
1950 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */ in HUF_readDTableX4()
1954 {if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */ in HUF_readDTableX4()
2084 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X4_usingDTable()
2120 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X4_usingDTable()
2155 if (op1 > opStart2) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2156 if (op2 > opStart3) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2157 if (op3 > opStart4) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2168 if (!endSignal) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2183 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X4()
2276 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge); in HUF_readDTableX6()
2283 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable is too small */ in HUF_readDTableX6()
2287 { if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */ in HUF_readDTableX6()
2439 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X6_usingDTable()
2477 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X6_usingDTable()
2512 if (op1 > opStart2) return ERROR(corruption_detected); in HUF_decompress4X6_usingDTable()
2513 if (op2 > opStart3) return ERROR(corruption_detected); in HUF_decompress4X6_usingDTable()
2514 if (op3 > opStart4) return ERROR(corruption_detected); in HUF_decompress4X6_usingDTable()
2525 if (!endSignal) return ERROR(corruption_detected); in HUF_decompress4X6_usingDTable()
2540 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X6()
2587 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUF_decompress()
2588 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUF_decompress()
2823 if (srcSize < 3) return ERROR(srcSize_wrong); in ZSTD_getcBlockSize()
2838 if (srcSize > maxDstSize) return ERROR(dstSize_tooSmall); in ZSTD_copyUncompressedBlock()
2856 if (litSize > *maxDstSizePtr) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2857 if (litCSize + 5 > srcSize) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2859 … if (HUF_isError(HUF_decompress(dst, litSize, ip+5, litCSize))) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2875 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2894 if (litSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2895 if (litSize > srcSize-3) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2910 if (litSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2932 if (srcSize < 5) return ERROR(srcSize_wrong); in ZSTD_decodeSeqHeaders()
2956 …if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at le… in ZSTD_decodeSeqHeaders()
2975 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
2976 if (LLlog > LLFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
2985 …if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLo… in ZSTD_decodeSeqHeaders()
2994 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
2995 if (Offlog > OffFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
3004 …if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog … in ZSTD_decodeSeqHeaders()
3012 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
3013 if (MLlog > MLFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
3117 …if (oLitEnd > oend_8) return ERROR(dstSize_tooSmall); /* last match must start at a minimum dist… in ZSTD_execSequence()
3118 if (oMatchEnd > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */ in ZSTD_execSequence()
3119 if (litEnd > litLimit) return ERROR(corruption_detected); /* overRead beyond lit buffer */ in ZSTD_execSequence()
3131 …if (sequence.offset > (size_t)op) return ERROR(corruption_detected); /* address space overflow t… in ZSTD_execSequence()
3133 if (match < base) return ERROR(corruption_detected); in ZSTD_execSequence()
3210 if (ERR_isError(errorCode)) return ERROR(corruption_detected); in ZSTD_decompressSequences()
3226 …if ( !BIT_endOfDStream(&(seqState.DStream)) ) return ERROR(corruption_detected); /* requested to… in ZSTD_decompressSequences()
3227 …if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrup… in ZSTD_decompressSequences()
3232 if (litPtr > litEnd) return ERROR(corruption_detected); in ZSTD_decompressSequences()
3233 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences()
3275 if (srcSize < ZSTD_frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTD_decompressDCtx()
3277 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown); in ZSTD_decompressDCtx()
3289 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong); in ZSTD_decompressDCtx()
3300 return ERROR(GENERIC); /* not yet supported */ in ZSTD_decompressDCtx()
3304 if (remainingSize) return ERROR(srcSize_wrong); in ZSTD_decompressDCtx()
3307 return ERROR(GENERIC); /* impossible */ in ZSTD_decompressDCtx()
3345 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv02_findFrameSizeInfoLegacy()
3350 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv02_findFrameSizeInfoLegacy()
3367 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv02_findFrameSizeInfoLegacy()
3417 if (srcSize != ctx->expected) return ERROR(srcSize_wrong); in ZSTD_decompressContinue()
3426 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown); in ZSTD_decompressContinue()
3465 return ERROR(GENERIC); /* not yet handled */ in ZSTD_decompressContinue()
3471 return ERROR(GENERIC); in ZSTD_decompressContinue()