Lines Matching refs:ERROR

891     if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }  in BITv06_initDStream()
898 if (lastByte == 0) return ERROR(GENERIC); /* endMark not present */ in BITv06_initDStream()
915 if (lastByte == 0) return ERROR(GENERIC); /* endMark not present */ in BITv06_initDStream()
1277 if (hbSize < 4) return ERROR(srcSize_wrong); in FSEv06_readNCount()
1280 if (nbBits > FSEv06_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSEv06_readNCount()
1307 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall); in FSEv06_readNCount()
1347 if (remaining != 1) return ERROR(GENERIC); in FSEv06_readNCount()
1351 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong); in FSEv06_readNCount()
1469 if (maxSymbolValue > FSEv06_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge); in FSEv06_buildDTable()
1470 if (tableLog > FSEv06_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSEv06_buildDTable()
1501 …if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normali… in FSEv06_buildDTable()
1553 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSEv06_buildDTable_raw()
1613 if (op>(omax-2)) return ERROR(dstSize_tooSmall); in FSEv06_decompress_usingDTable_generic()
1622 if (op>(omax-2)) return ERROR(dstSize_tooSmall); in FSEv06_decompress_usingDTable_generic()
1658 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */ in FSEv06_decompress()
1663 if (NCountLength >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSEv06_decompress()
1863 if (!srcSize) return ERROR(srcSize_wrong); in HUFv06_readStats()
1877 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUFv06_readStats()
1878 if (oSize >= hwSize) return ERROR(corruption_detected); in HUFv06_readStats()
1886 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUFv06_readStats()
1895 if (huffWeight[n] >= HUFv06_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUFv06_readStats()
1899 if (weightTotal == 0) return ERROR(corruption_detected); in HUFv06_readStats()
1903 if (tableLog > HUFv06_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected); in HUFv06_readStats()
1910 …if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 … in HUFv06_readStats()
1916 …if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construct… in HUFv06_readStats()
2023 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */ in HUFv06_readDTableX2()
2110 if (!BITv06_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUFv06_decompress1X2_usingDTable()
2122 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUFv06_decompress1X2()
2136 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per… in HUFv06_decompress4X2_usingDTable()
2170 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUFv06_decompress4X2_usingDTable()
2203 if (op1 > opStart2) return ERROR(corruption_detected); in HUFv06_decompress4X2_usingDTable()
2204 if (op2 > opStart3) return ERROR(corruption_detected); in HUFv06_decompress4X2_usingDTable()
2205 if (op3 > opStart4) return ERROR(corruption_detected); in HUFv06_decompress4X2_usingDTable()
2216 if (!endSignal) return ERROR(corruption_detected); in HUFv06_decompress4X2_usingDTable()
2231 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); in HUFv06_decompress4X2()
2342 if (memLog > HUFv06_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge); in HUFv06_readDTableX4()
2349 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */ in HUFv06_readDTableX4()
2486 if (!BITv06_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUFv06_decompress1X4_usingDTable()
2499 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv06_decompress1X4()
2511 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUFv06_decompress4X4_usingDTable()
2545 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUFv06_decompress4X4_usingDTable()
2579 if (op1 > opStart2) return ERROR(corruption_detected); in HUFv06_decompress4X4_usingDTable()
2580 if (op2 > opStart3) return ERROR(corruption_detected); in HUFv06_decompress4X4_usingDTable()
2581 if (op3 > opStart4) return ERROR(corruption_detected); in HUFv06_decompress4X4_usingDTable()
2592 if (!endSignal) return ERROR(corruption_detected); in HUFv06_decompress4X4_usingDTable()
2607 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv06_decompress4X4()
2651 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUFv06_decompress()
2652 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUFv06_decompress()
2969 if (srcSize < ZSTDv06_frameHeaderSize_min) return ERROR(srcSize_wrong); in ZSTDv06_frameHeaderSize()
2985 if (MEM_readLE32(src) != ZSTDv06_MAGICNUMBER) return ERROR(prefix_unknown); in ZSTDv06_getFrameParams()
2994 … if ((frameDesc & 0x20) != 0) return ERROR(frameParameter_unsupported); /* reserved 1 bit */ in ZSTDv06_getFrameParams()
3013 if ((MEM_32bits()) && (zc->fParams.windowLog > 25)) return ERROR(frameParameter_unsupported); in ZSTDv06_decodeFrameHeader()
3031 if (srcSize < ZSTDv06_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv06_getcBlockSize()
3045 if (dst==NULL) return ERROR(dstSize_tooSmall); in ZSTDv06_copyRawBlock()
3046 if (srcSize > dstCapacity) return ERROR(dstSize_tooSmall); in ZSTDv06_copyRawBlock()
3060 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3067 …if (srcSize < 5) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we … in ZSTDv06_decodeLiteralsBlock()
3090 if (litSize > ZSTDv06_BLOCKSIZE_MAX) return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3091 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3096 return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3107 return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3109 return ERROR(dictionary_corrupted); in ZSTDv06_decodeLiteralsBlock()
3115 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3118 if (HUFv06_isError(errorCode)) return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3143 if (litSize+lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3169 …if (srcSize<4) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we ne… in ZSTDv06_decodeLiteralsBlock()
3172 if (litSize > ZSTDv06_BLOCKSIZE_MAX) return ERROR(corruption_detected); in ZSTDv06_decodeLiteralsBlock()
3179 return ERROR(corruption_detected); /* impossible */ in ZSTDv06_decodeLiteralsBlock()
3195 if (!srcSize) return ERROR(srcSize_wrong); in ZSTDv06_buildSeqTable()
3196 if ( (*(const BYTE*)src) > max) return ERROR(corruption_detected); in ZSTDv06_buildSeqTable()
3203 if (!flagRepeatTable) return ERROR(corruption_detected); in ZSTDv06_buildSeqTable()
3210 if (FSEv06_isError(headerSize)) return ERROR(corruption_detected); in ZSTDv06_buildSeqTable()
3211 if (tableLog > maxLog) return ERROR(corruption_detected); in ZSTDv06_buildSeqTable()
3227 if (srcSize < MIN_SEQUENCES_SIZE) return ERROR(srcSize_wrong); in ZSTDv06_decodeSeqHeaders()
3234 if (ip+2 > iend) return ERROR(srcSize_wrong); in ZSTDv06_decodeSeqHeaders()
3237 if (ip >= iend) return ERROR(srcSize_wrong); in ZSTDv06_decodeSeqHeaders()
3245 …if (ip + 4 > iend) return ERROR(srcSize_wrong); /* min : header byte + all 3 are "raw", hence no h… in ZSTDv06_decodeSeqHeaders()
3253 if (ZSTDv06_isError(bhSize)) return ERROR(corruption_detected); in ZSTDv06_decodeSeqHeaders()
3257 if (ZSTDv06_isError(bhSize)) return ERROR(corruption_detected); in ZSTDv06_decodeSeqHeaders()
3261 if (ZSTDv06_isError(bhSize)) return ERROR(corruption_detected); in ZSTDv06_decodeSeqHeaders()
3374 …if (oLitEnd > oend_8) return ERROR(dstSize_tooSmall); /* last match must start at a minimum dist… in ZSTDv06_execSequence()
3375 if (oMatchEnd > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */ in ZSTDv06_execSequence()
3376 if (iLitEnd > litLimit) return ERROR(corruption_detected); /* over-read beyond lit buffer */ in ZSTDv06_execSequence()
3386 if (sequence.offset > (size_t)(oLitEnd - vBase)) return ERROR(corruption_detected); in ZSTDv06_execSequence()
3473 if (ERR_isError(errorCode)) return ERROR(corruption_detected); } in ZSTDv06_decompressSequences()
3497 if (nbSeq) return ERROR(corruption_detected); in ZSTDv06_decompressSequences()
3502 … if (litPtr > litEnd) return ERROR(corruption_detected); /* too many literals already used */ in ZSTDv06_decompressSequences()
3503 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTDv06_decompressSequences()
3531 if (srcSize >= ZSTDv06_BLOCKSIZE_MAX) return ERROR(srcSize_wrong); in ZSTDv06_decompressBlock_internal()
3567 if (srcSize < ZSTDv06_frameHeaderSize_min+ZSTDv06_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv06_decompressFrame()
3572 if (srcSize < frameHeaderSize+ZSTDv06_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv06_decompressFrame()
3573 … if (ZSTDv06_decodeFrameHeader(dctx, src, frameHeaderSize)) return ERROR(corruption_detected); in ZSTDv06_decompressFrame()
3585 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong); in ZSTDv06_decompressFrame()
3596 return ERROR(GENERIC); /* not yet supported */ in ZSTDv06_decompressFrame()
3600 if (remainingSize) return ERROR(srcSize_wrong); in ZSTDv06_decompressFrame()
3603 return ERROR(GENERIC); /* impossible */ in ZSTDv06_decompressFrame()
3649 if (dctx==NULL) return ERROR(memory_allocation); in ZSTDv06_decompress()
3681 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv06_findFrameSizeInfoLegacy()
3685 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv06_findFrameSizeInfoLegacy()
3702 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv06_findFrameSizeInfoLegacy()
3728 if (srcSize != dctx->expected) return ERROR(srcSize_wrong); in ZSTDv06_decompressContinue()
3735 if (srcSize != ZSTDv06_frameHeaderSize_min) return ERROR(srcSize_wrong); /* impossible */ in ZSTDv06_decompressContinue()
3780 return ERROR(GENERIC); /* not yet handled */ in ZSTDv06_decompressContinue()
3786 return ERROR(GENERIC); /* impossible */ in ZSTDv06_decompressContinue()
3794 return ERROR(GENERIC); /* impossible */ in ZSTDv06_decompressContinue()
3812 if (HUFv06_isError(hSize)) return ERROR(dictionary_corrupted); in ZSTDv06_loadEntropy()
3819 if (FSEv06_isError(offcodeHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv06_loadEntropy()
3820 if (offcodeLog > OffFSELog) return ERROR(dictionary_corrupted); in ZSTDv06_loadEntropy()
3822 if (FSEv06_isError(errorCode)) return ERROR(dictionary_corrupted); } in ZSTDv06_loadEntropy()
3830 if (FSEv06_isError(matchlengthHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv06_loadEntropy()
3831 if (matchlengthLog > MLFSELog) return ERROR(dictionary_corrupted); in ZSTDv06_loadEntropy()
3833 if (FSEv06_isError(errorCode)) return ERROR(dictionary_corrupted); } in ZSTDv06_loadEntropy()
3841 if (FSEv06_isError(litlengthHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv06_loadEntropy()
3842 if (litlengthLog > LLFSELog) return ERROR(dictionary_corrupted); in ZSTDv06_loadEntropy()
3844 if (FSEv06_isError(errorCode)) return ERROR(dictionary_corrupted); } in ZSTDv06_loadEntropy()
3864 if (ZSTDv06_isError(eSize)) return ERROR(dictionary_corrupted); in ZSTDv06_decompress_insertDictionary()
3882 if (ZSTDv06_isError(errorCode)) return ERROR(dictionary_corrupted); in ZSTDv06_decompressBegin_usingDict()
4030 return ERROR(init_missing); in ZBUFFv06_decompressContinue()
4064 if (zbd->inBuff == NULL) return ERROR(memory_allocation); in ZBUFFv06_decompressContinue()
4071 if (zbd->outBuff == NULL) return ERROR(memory_allocation); in ZBUFFv06_decompressContinue()
4101 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv06_decompressContinue()
4135 default: return ERROR(GENERIC); /* impossible */ in ZBUFFv06_decompressContinue()