Lines Matching refs:ERROR

659     if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }  in BIT_initDStream()
668 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */ in BIT_initDStream()
688 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */ in BIT_initDStream()
1089 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge); in FSE_buildDTable()
1090 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable()
1121 …if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normali… in FSE_buildDTable()
1170 if (hbSize < 4) return ERROR(srcSize_wrong); in FSE_readNCount()
1173 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSE_readNCount()
1208 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall); in FSE_readNCount()
1260 if (remaining != 1) return ERROR(GENERIC); in FSE_readNCount()
1264 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong); in FSE_readNCount()
1302 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSE_buildDTable_raw()
1381 if (op==omax) return ERROR(dstSize_tooSmall); /* dst buffer is full, but cSrc unfinished */ in FSE_decompress_usingDTable_generic()
1383 return ERROR(corruption_detected); in FSE_decompress_usingDTable_generic()
1413 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1418 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSE_decompress()
1703 if (!srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1720 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1721 if (oSize >= hwSize) return ERROR(corruption_detected); in HUF_readStats()
1732 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUF_readStats()
1742 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUF_readStats()
1746 if (weightTotal == 0) return ERROR(corruption_detected); in HUF_readStats()
1750 if (tableLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUF_readStats()
1756 …if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 … in HUF_readStats()
1762 …if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construct… in HUF_readStats()
1794 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */ in HUF_readDTableX2()
1871 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X2_usingDTable()
1906 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X2_usingDTable()
1941 if (op1 > opStart2) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1942 if (op2 > opStart3) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1943 if (op3 > opStart4) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1954 if (!endSignal) return ERROR(corruption_detected); in HUF_decompress4X2_usingDTable()
1970 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X2()
2090 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge); in HUF_readDTableX4()
2097 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */ in HUF_readDTableX4()
2101 { if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */ in HUF_readDTableX4()
2229 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUF_decompress4X4_usingDTable()
2264 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X4_usingDTable()
2299 if (op1 > opStart2) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2300 if (op2 > opStart3) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2301 if (op3 > opStart4) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2312 if (!endSignal) return ERROR(corruption_detected); in HUF_decompress4X4_usingDTable()
2327 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X4()
2374 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUF_decompress()
2375 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUF_decompress()
2550 if (srcSize != ZSTD_frameHeaderSize_min) return ERROR(srcSize_wrong); in ZSTD_decodeFrameHeader_Part1()
2552 if (magicNumber != ZSTD_MAGICNUMBER) return ERROR(prefix_unknown); in ZSTD_decodeFrameHeader_Part1()
2563 if (magicNumber != ZSTD_MAGICNUMBER) return ERROR(prefix_unknown); in ZSTD_getFrameParams()
2566 …if ((((const BYTE*)src)[4] >> 4) != 0) return ERROR(frameParameter_unsupported); /* reserved bit… in ZSTD_getFrameParams()
2577 if (srcSize != zc->headerSize) return ERROR(srcSize_wrong); in ZSTD_decodeFrameHeader_Part2()
2579 if ((MEM_32bits()) && (zc->params.windowLog > 25)) return ERROR(frameParameter_unsupported); in ZSTD_decodeFrameHeader_Part2()
2590 if (srcSize < 3) return ERROR(srcSize_wrong); in ZSTD_getcBlockSize()
2605 if (srcSize > maxDstSize) return ERROR(dstSize_tooSmall); in ZSTD_copyRawBlock()
2623 if (litSize > *maxDstSizePtr) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2624 if (litCSize + 5 > srcSize) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2626 … if (HUF_isError(HUF_decompress(dst, litSize, ip+5, litCSize))) return ERROR(corruption_detected); in ZSTD_decompressLiterals()
2641 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2660 if (litSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2661 if (litSize > srcSize-3) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2675 if (litSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTD_decodeLiteralsBlock()
2682 return ERROR(corruption_detected); /* forbidden nominal case */ in ZSTD_decodeLiteralsBlock()
2699 if (srcSize < 5) return ERROR(srcSize_wrong); in ZSTD_decodeSeqHeaders()
2723 …if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at le… in ZSTD_decodeSeqHeaders()
2742 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
2743 if (LLlog > LLFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
2752 …if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLo… in ZSTD_decodeSeqHeaders()
2761 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
2762 if (Offlog > OffFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
2771 …if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog … in ZSTD_decodeSeqHeaders()
2779 if (FSE_isError(headerSize)) return ERROR(GENERIC); in ZSTD_decodeSeqHeaders()
2780 if (MLlog > MLFSELog) return ERROR(corruption_detected); in ZSTD_decodeSeqHeaders()
2880 …if (oLitEnd > oend_8) return ERROR(dstSize_tooSmall); /* last match must start at a minimum dist… in ZSTD_execSequence()
2881 if (oMatchEnd > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */ in ZSTD_execSequence()
2882 if (litEnd > litLimit) return ERROR(corruption_detected); /* risk read beyond lit buffer */ in ZSTD_execSequence()
2894 return ERROR(corruption_detected); in ZSTD_execSequence()
2990 if (ERR_isError(errorCode)) return ERROR(corruption_detected); in ZSTD_decompressSequences()
3006 …if ( !BIT_endOfDStream(&(seqState.DStream)) ) return ERROR(corruption_detected); /* DStream shou… in ZSTD_decompressSequences()
3011 if (litPtr > litEnd) return ERROR(corruption_detected); in ZSTD_decompressSequences()
3012 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences()
3044 if (srcSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTD_decompressBlock_internal()
3086 if (srcSize < ZSTD_frameHeaderSize_min+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTD_decompress_usingDict()
3089 if (srcSize < frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTD_decompress_usingDict()
3104 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong); in ZSTD_decompress_usingDict()
3115 return ERROR(GENERIC); /* not yet supported */ in ZSTD_decompress_usingDict()
3119 if (remainingSize) return ERROR(srcSize_wrong); in ZSTD_decompress_usingDict()
3122 return ERROR(GENERIC); /* impossible */ in ZSTD_decompress_usingDict()
3152 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv04_findFrameSizeInfoLegacy()
3156 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv04_findFrameSizeInfoLegacy()
3173 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv04_findFrameSizeInfoLegacy()
3199 if (srcSize != ctx->expected) return ERROR(srcSize_wrong); in ZSTD_decompressContinue()
3207 if (srcSize != ZSTD_frameHeaderSize_min) return ERROR(srcSize_wrong); /* impossible */ in ZSTD_decompressContinue()
3211 if (ctx->headerSize > ZSTD_frameHeaderSize_min) return ERROR(GENERIC); /* impossible */ in ZSTD_decompressContinue()
3253 return ERROR(GENERIC); /* not yet handled */ in ZSTD_decompressContinue()
3259 return ERROR(GENERIC); in ZSTD_decompressContinue()
3267 return ERROR(GENERIC); /* impossible */ in ZSTD_decompressContinue()
3440 return ERROR(init_missing); in ZBUFF_decompressContinue()
3482 if (zbc->inBuff == NULL) return ERROR(memory_allocation); in ZBUFF_decompressContinue()
3488 if (zbc->outBuff == NULL) return ERROR(memory_allocation); in ZBUFF_decompressContinue()
3533 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFF_decompressContinue()
3568 default: return ERROR(GENERIC); /* impossible */ in ZBUFF_decompressContinue()
3609 if (dctx==NULL) return ERROR(memory_allocation); in ZSTDv04_decompress()