Lines Matching refs:ERROR

788     if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }  in BITv05_initDStream()
796 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */ in BITv05_initDStream()
814 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */ in BITv05_initDStream()
1225 if (maxSymbolValue > FSEv05_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge); in FSEv05_buildDTable()
1226 if (tableLog > FSEv05_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSEv05_buildDTable()
1249 …if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normali… in FSEv05_buildDTable()
1296 if (hbSize < 4) return ERROR(srcSize_wrong); in FSEv05_readNCount()
1299 if (nbBits > FSEv05_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSEv05_readNCount()
1326 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall); in FSEv05_readNCount()
1367 if (remaining != 1) return ERROR(GENERIC); in FSEv05_readNCount()
1371 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong); in FSEv05_readNCount()
1410 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSEv05_buildDTable_raw()
1486 if (op==omax) return ERROR(dstSize_tooSmall); /* dst buffer is full, but cSrc unfinished */ in FSEv05_decompress_usingDTable_generic()
1488 return ERROR(corruption_detected); in FSEv05_decompress_usingDTable_generic()
1516 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */ in FSEv05_decompress()
1521 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSEv05_decompress()
1805 if (!srcSize) return ERROR(srcSize_wrong); in HUFv05_readStats()
1819 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUFv05_readStats()
1820 if (oSize >= hwSize) return ERROR(corruption_detected); in HUFv05_readStats()
1827 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUFv05_readStats()
1836 if (huffWeight[n] >= HUFv05_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUFv05_readStats()
1840 if (weightTotal == 0) return ERROR(corruption_detected); in HUFv05_readStats()
1844 if (tableLog > HUFv05_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUFv05_readStats()
1850 …if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 … in HUFv05_readStats()
1856 …if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construct… in HUFv05_readStats()
1888 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */ in HUFv05_readDTableX2()
1968 if (dstSize <= cSrcSize) return ERROR(dstSize_tooSmall); in HUFv05_decompress1X2_usingDTable()
1975 if (!BITv05_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUFv05_decompress1X2_usingDTable()
1988 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUFv05_decompress1X2()
2002 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUFv05_decompress4X2_usingDTable()
2036 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUFv05_decompress4X2_usingDTable()
2069 if (op1 > opStart2) return ERROR(corruption_detected); in HUFv05_decompress4X2_usingDTable()
2070 if (op2 > opStart3) return ERROR(corruption_detected); in HUFv05_decompress4X2_usingDTable()
2071 if (op3 > opStart4) return ERROR(corruption_detected); in HUFv05_decompress4X2_usingDTable()
2082 if (!endSignal) return ERROR(corruption_detected); in HUFv05_decompress4X2_usingDTable()
2098 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUFv05_decompress4X2()
2212 if (memLog > HUFv05_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge); in HUFv05_readDTableX4()
2219 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */ in HUFv05_readDTableX4()
2358 if (!BITv05_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUFv05_decompress1X4_usingDTable()
2371 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv05_decompress1X4()
2383 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUFv05_decompress4X4_usingDTable()
2418 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUFv05_decompress4X4_usingDTable()
2452 if (op1 > opStart2) return ERROR(corruption_detected); in HUFv05_decompress4X4_usingDTable()
2453 if (op2 > opStart3) return ERROR(corruption_detected); in HUFv05_decompress4X4_usingDTable()
2454 if (op3 > opStart4) return ERROR(corruption_detected); in HUFv05_decompress4X4_usingDTable()
2465 if (!endSignal) return ERROR(corruption_detected); in HUFv05_decompress4X4_usingDTable()
2480 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv05_decompress4X4()
2527 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUFv05_decompress()
2528 …if (cSrcSize >= dstSize) return ERROR(corruption_detected); /* invalid, or not compressed, but n… in HUFv05_decompress()
2795 return ERROR(srcSize_wrong); in ZSTDv05_decodeFrameHeader_Part1()
2797 if (magicNumber != ZSTDv05_MAGICNUMBER) return ERROR(prefix_unknown); in ZSTDv05_decodeFrameHeader_Part1()
2808 if (magicNumber != ZSTDv05_MAGICNUMBER) return ERROR(prefix_unknown); in ZSTDv05_getFrameParams()
2811 …if ((((const BYTE*)src)[4] >> 4) != 0) return ERROR(frameParameter_unsupported); /* reserved bit… in ZSTDv05_getFrameParams()
2823 return ERROR(srcSize_wrong); in ZSTDv05_decodeFrameHeader_Part2()
2825 if ((MEM_32bits()) && (zc->params.windowLog > 25)) return ERROR(frameParameter_unsupported); in ZSTDv05_decodeFrameHeader_Part2()
2837 return ERROR(srcSize_wrong); in ZSTDv05_getcBlockSize()
2853 if (dst==NULL) return ERROR(dstSize_tooSmall); in ZSTDv05_copyRawBlock()
2854 if (srcSize > maxDstSize) return ERROR(dstSize_tooSmall); in ZSTDv05_copyRawBlock()
2868 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2876 …if (srcSize < 5) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we … in ZSTDv05_decodeLiteralsBlock()
2899 if (litSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2900 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2905 return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2918 return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2920 return ERROR(dictionary_corrupted); in ZSTDv05_decodeLiteralsBlock()
2926 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2929 if (HUFv05_isError(errorCode)) return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2955 if (litSize+lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2982 …if (srcSize<4) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we ne… in ZSTDv05_decodeLiteralsBlock()
2985 if (litSize > BLOCKSIZE) return ERROR(corruption_detected); in ZSTDv05_decodeLiteralsBlock()
2992 return ERROR(corruption_detected); /* impossible */ in ZSTDv05_decodeLiteralsBlock()
3010 return ERROR(srcSize_wrong); in ZSTDv05_decodeSeqHeaders()
3016 if (ip >= iend) return ERROR(srcSize_wrong); in ZSTDv05_decodeSeqHeaders()
3020 if (ip >= iend) return ERROR(srcSize_wrong); in ZSTDv05_decodeSeqHeaders()
3025 if (ip+3 > iend) return ERROR(srcSize_wrong); in ZSTDv05_decodeSeqHeaders()
3030 if (ip+2 > iend) return ERROR(srcSize_wrong); in ZSTDv05_decodeSeqHeaders()
3040 …if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at le… in ZSTDv05_decodeSeqHeaders()
3059 if (!flagStaticTable) return ERROR(corruption_detected); in ZSTDv05_decodeSeqHeaders()
3065 if (FSEv05_isError(headerSize)) return ERROR(GENERIC); in ZSTDv05_decodeSeqHeaders()
3066 if (LLlog > LLFSEv05Log) return ERROR(corruption_detected); in ZSTDv05_decodeSeqHeaders()
3075 …if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLo… in ZSTDv05_decodeSeqHeaders()
3083 if (!flagStaticTable) return ERROR(corruption_detected); in ZSTDv05_decodeSeqHeaders()
3089 if (FSEv05_isError(headerSize)) return ERROR(GENERIC); in ZSTDv05_decodeSeqHeaders()
3090 if (Offlog > OffFSEv05Log) return ERROR(corruption_detected); in ZSTDv05_decodeSeqHeaders()
3099 …if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog … in ZSTDv05_decodeSeqHeaders()
3107 if (!flagStaticTable) return ERROR(corruption_detected); in ZSTDv05_decodeSeqHeaders()
3113 if (FSEv05_isError(headerSize)) return ERROR(GENERIC); in ZSTDv05_decodeSeqHeaders()
3114 if (MLlog > MLFSEv05Log) return ERROR(corruption_detected); in ZSTDv05_decodeSeqHeaders()
3238 …if (oLitEnd > oend_8) return ERROR(dstSize_tooSmall); /* last match must start at a minimum dist… in ZSTDv05_execSequence()
3239 if (oMatchEnd > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */ in ZSTDv05_execSequence()
3240 if (litEnd > litLimit) return ERROR(corruption_detected); /* risk read beyond lit buffer */ in ZSTDv05_execSequence()
3251 return ERROR(corruption_detected); in ZSTDv05_execSequence()
3342 if (ERR_isError(errorCode)) return ERROR(corruption_detected); in ZSTDv05_decompressSequences()
3357 if (nbSeq) return ERROR(corruption_detected); in ZSTDv05_decompressSequences()
3363 … if (litPtr > litEnd) return ERROR(corruption_detected); /* too many literals already used */ in ZSTDv05_decompressSequences()
3364 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTDv05_decompressSequences()
3393 if (srcSize >= BLOCKSIZE) return ERROR(srcSize_wrong); in ZSTDv05_decompressBlock_internal()
3431 … if (srcSize < ZSTDv05_frameHeaderSize_min+ZSTDv05_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv05_decompress_continueDCtx()
3434 if (srcSize < frameHeaderSize+ZSTDv05_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv05_decompress_continueDCtx()
3449 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong); in ZSTDv05_decompress_continueDCtx()
3460 return ERROR(GENERIC); /* not yet supported */ in ZSTDv05_decompress_continueDCtx()
3464 if (remainingSize) return ERROR(srcSize_wrong); in ZSTDv05_decompress_continueDCtx()
3467 return ERROR(GENERIC); /* impossible */ in ZSTDv05_decompress_continueDCtx()
3512 if (dctx==NULL) return ERROR(memory_allocation); in ZSTDv05_decompress()
3539 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv05_findFrameSizeInfoLegacy()
3543 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv05_findFrameSizeInfoLegacy()
3560 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv05_findFrameSizeInfoLegacy()
3586 if (srcSize != dctx->expected) return ERROR(srcSize_wrong); in ZSTDv05_decompressContinue()
3594 if (srcSize != ZSTDv05_frameHeaderSize_min) return ERROR(srcSize_wrong); /* impossible */ in ZSTDv05_decompressContinue()
3598 …if (dctx->headerSize > ZSTDv05_frameHeaderSize_min) return ERROR(GENERIC); /* should never happen … in ZSTDv05_decompressContinue()
3639 return ERROR(GENERIC); /* not yet handled */ in ZSTDv05_decompressContinue()
3645 return ERROR(GENERIC); /* impossible */ in ZSTDv05_decompressContinue()
3653 return ERROR(GENERIC); /* impossible */ in ZSTDv05_decompressContinue()
3677 if (HUFv05_isError(hSize)) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3682 if (FSEv05_isError(offcodeHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3683 if (offcodeLog > OffFSEv05Log) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3685 if (FSEv05_isError(errorCode)) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3690 if (FSEv05_isError(matchlengthHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3691 if (matchlengthLog > MLFSEv05Log) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3693 if (FSEv05_isError(errorCode)) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3698 if (litlengthLog > LLFSEv05Log) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3699 if (FSEv05_isError(litlengthHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3701 if (FSEv05_isError(errorCode)) return ERROR(dictionary_corrupted); in ZSTDv05_loadEntropy()
3720 if (ZSTDv05_isError(eSize)) return ERROR(dictionary_corrupted); in ZSTDv05_decompress_insertDictionary()
3739 if (ZSTDv05_isError(errorCode)) return ERROR(dictionary_corrupted); in ZSTDv05_decompressBegin_usingDict()
3901 return ERROR(init_missing); in ZBUFFv05_decompressContinue()
3947 if (zbc->inBuff == NULL) return ERROR(memory_allocation); in ZBUFFv05_decompressContinue()
3953 if (zbc->outBuff == NULL) return ERROR(memory_allocation); in ZBUFFv05_decompressContinue()
3994 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv05_decompressContinue()
4028 default: return ERROR(GENERIC); /* impossible */ in ZBUFFv05_decompressContinue()