Lines Matching refs:ERROR
389 if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); } in BIT_initDStream()
398 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */ in BIT_initDStream()
424 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */ in BIT_initDStream()
571 #define ERROR(name) (size_t)-PREFIX(name) macro
587 ERR_STATIC unsigned ERR_isError(size_t code) { return (code > ERROR(maxCode)); } in ERR_isError()
1113 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge); in FSE_buildDTable()
1114 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable()
1144 …if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normali… in FSE_buildDTable()
1193 if (hbSize < 4) return ERROR(srcSize_wrong); in FSE_readNCount()
1196 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSE_readNCount()
1231 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall); in FSE_readNCount()
1283 if (remaining != 1) return ERROR(GENERIC); in FSE_readNCount()
1287 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong); in FSE_readNCount()
1323 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSE_buildDTable_raw()
1402 if (op==omax) return ERROR(dstSize_tooSmall); /* dst buffer is full, but cSrc unfinished */ in FSE_decompress_usingDTable_generic()
1404 return ERROR(corruption_detected); in FSE_decompress_usingDTable_generic()
1431 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1436 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1550 if (!srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1567 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1568 if (oSize >= hwSize) return ERROR(corruption_detected); in HUF_readStats()
1579 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1589 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUF_readStats()
1593 if (weightTotal == 0) return ERROR(corruption_detected); in HUF_readStats()
1597 if (tableLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUF_readStats()
1603 …if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 … in HUF_readStats()
1609 …if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construct… in HUF_readStats()
1642 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */ in HUF_readDTableX2()
1719 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X2_usingDTable()
1755 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X2_usingDTable()
1790 if (op1 > opStart2) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1791 if (op2 > opStart3) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1792 if (op3 > opStart4) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1803 if (!endSignal) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1819 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X2()
1940 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge); in HUF_readDTableX4()
1947 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */ in HUF_readDTableX4()
1951 { if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */ in HUF_readDTableX4()
2081 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X4_usingDTable()
2117 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X4_usingDTable()
2152 if (op1 > opStart2) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2153 if (op2 > opStart3) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2154 if (op3 > opStart4) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2165 if (!endSignal) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2180 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X4()
2227 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUF_decompress()
2228 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUF_decompress()
2464 if (srcSize < 3) return ERROR(srcSize_wrong); in ZSTD_getcBlockSize()
2479 if (srcSize > maxDstSize) return ERROR(dstSize_tooSmall); in ZSTD_copyUncompressedBlock()
2497 if (litSize > *maxDstSizePtr) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2498 if (litCSize + 5 > srcSize) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2500 … if (HUF_isError(HUF_decompress(dst, litSize, ip+5, litCSize))) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2516 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2535 if (litSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2536 if (litSize > srcSize-3) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2551 if (litSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2573 if (srcSize < 5) return ERROR(srcSize_wrong); in ZSTD_decodeSeqHeaders()
2597 …if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at le… in ZSTD_decodeSeqHeaders()
2616 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
2617 if (LLlog > LLFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
2626 …if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLo… in ZSTD_decodeSeqHeaders()
2635 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
2636 if (Offlog > OffFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
2645 …if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog … in ZSTD_decodeSeqHeaders()
2653 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
2654 if (MLlog > MLFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
2758 …if (oLitEnd > oend_8) return ERROR(dstSize_tooSmall); /* last match must start at a minimum dist… in ZSTD_execSequence()
2759 if (oMatchEnd > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */ in ZSTD_execSequence()
2760 if (litEnd > litLimit) return ERROR(corruption_detected); /* overRead beyond lit buffer */ in ZSTD_execSequence()
2772 …if (sequence.offset > (size_t)op) return ERROR(corruption_detected); /* address space overflow t… in ZSTD_execSequence()
2774 if (match < base) return ERROR(corruption_detected); in ZSTD_execSequence()
2851 if (ERR_isError(errorCode)) return ERROR(corruption_detected); in ZSTD_decompressSequences()
2867 …if ( !BIT_endOfDStream(&(seqState.DStream)) ) return ERROR(corruption_detected); /* requested to… in ZSTD_decompressSequences()
2868 …if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrup… in ZSTD_decompressSequences()
2873 if (litPtr > litEnd) return ERROR(corruption_detected); in ZSTD_decompressSequences()
2874 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences()
2916 if (srcSize < ZSTD_frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTD_decompressDCtx()
2918 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown); in ZSTD_decompressDCtx()
2930 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong); in ZSTD_decompressDCtx()
2941 return ERROR(GENERIC); /* not yet supported */ in ZSTD_decompressDCtx()
2945 if (remainingSize) return ERROR(srcSize_wrong); in ZSTD_decompressDCtx()
2948 return ERROR(GENERIC); /* impossible */ in ZSTD_decompressDCtx()
2986 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv03_findFrameSizeInfoLegacy()
2991 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv03_findFrameSizeInfoLegacy()
3008 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv03_findFrameSizeInfoLegacy()
3059 if (srcSize != ctx->expected) return ERROR(srcSize_wrong); in ZSTD_decompressContinue()
3068 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown); in ZSTD_decompressContinue()
3107 return ERROR(GENERIC); /* not yet handled */ in ZSTD_decompressContinue()
3113 return ERROR(GENERIC); in ZSTD_decompressContinue()