Lines Matching refs:ERROR

559     if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }  in BITv07_initDStream()
567 if (lastByte == 0) return ERROR(GENERIC); /* endMark not present */ } in BITv07_initDStream()
584 if (lastByte == 0) return ERROR(GENERIC); /* endMark not present */ } in BITv07_initDStream()
1221 if (hbSize < 4) return ERROR(srcSize_wrong); in FSEv07_readNCount()
1224 if (nbBits > FSEv07_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSEv07_readNCount()
1251 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall); in FSEv07_readNCount()
1291 if (remaining != 1) return ERROR(GENERIC); in FSEv07_readNCount()
1295 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong); in FSEv07_readNCount()
1315 if (!srcSize) return ERROR(srcSize_wrong); in HUFv07_readStats()
1329 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUFv07_readStats()
1330 if (oSize >= hwSize) return ERROR(corruption_detected); in HUFv07_readStats()
1338 if (iSize+1 > srcSize) return ERROR(srcSize_wrong); in HUFv07_readStats()
1347 if (huffWeight[n] >= HUFv07_TABLELOG_ABSOLUTEMAX) return ERROR(corruption_detected); in HUFv07_readStats()
1351 if (weightTotal == 0) return ERROR(corruption_detected); in HUFv07_readStats()
1355 if (tableLog > HUFv07_TABLELOG_ABSOLUTEMAX) return ERROR(corruption_detected); in HUFv07_readStats()
1362 …if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 … in HUFv07_readStats()
1368 …if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construct… in HUFv07_readStats()
1489 if (maxSymbolValue > FSEv07_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge); in FSEv07_buildDTable()
1490 if (tableLog > FSEv07_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSEv07_buildDTable()
1521 …if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normali… in FSEv07_buildDTable()
1573 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSEv07_buildDTable_raw()
1633 if (op>(omax-2)) return ERROR(dstSize_tooSmall); in FSEv07_decompress_usingDTable_generic()
1642 if (op>(omax-2)) return ERROR(dstSize_tooSmall); in FSEv07_decompress_usingDTable_generic()
1678 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */ in FSEv07_decompress()
1683 if (NCountLength >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */ in FSEv07_decompress()
1794 …if (tableLog > (U32)(dtd.maxTableLog+1)) return ERROR(tableLog_tooLarge); /* DTable too small, h… in HUFv07_readDTableX2()
1886 if (!BITv07_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUFv07_decompress1X2_usingDTable_internal()
1897 if (dtd.tableType != 0) return ERROR(GENERIC); in HUFv07_decompress1X2_usingDTable()
1907 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv07_decompress1X2_DCtx()
1926 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per… in HUFv07_decompress4X2_usingDTable_internal()
1959 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUFv07_decompress4X2_usingDTable_internal()
1992 if (op1 > opStart2) return ERROR(corruption_detected); in HUFv07_decompress4X2_usingDTable_internal()
1993 if (op2 > opStart3) return ERROR(corruption_detected); in HUFv07_decompress4X2_usingDTable_internal()
1994 if (op3 > opStart4) return ERROR(corruption_detected); in HUFv07_decompress4X2_usingDTable_internal()
2005 if (!endSignal) return ERROR(corruption_detected); in HUFv07_decompress4X2_usingDTable_internal()
2019 if (dtd.tableType != 0) return ERROR(GENERIC); in HUFv07_decompress4X2_usingDTable()
2030 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv07_decompress4X2_DCtx()
2150 if (maxTableLog > HUFv07_TABLELOG_ABSOLUTEMAX) return ERROR(tableLog_tooLarge); in HUFv07_readDTableX4()
2157 if (tableLog > maxTableLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */ in HUFv07_readDTableX4()
2297 if (!BITv07_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUFv07_decompress1X4_usingDTable_internal()
2309 if (dtd.tableType != 1) return ERROR(GENERIC); in HUFv07_decompress1X4_usingDTable()
2319 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv07_decompress1X4_DCtx()
2336 …if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte pe… in HUFv07_decompress4X4_usingDTable_internal()
2369 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */ in HUFv07_decompress4X4_usingDTable_internal()
2403 if (op1 > opStart2) return ERROR(corruption_detected); in HUFv07_decompress4X4_usingDTable_internal()
2404 if (op2 > opStart3) return ERROR(corruption_detected); in HUFv07_decompress4X4_usingDTable_internal()
2405 if (op3 > opStart4) return ERROR(corruption_detected); in HUFv07_decompress4X4_usingDTable_internal()
2416 if (!endCheck) return ERROR(corruption_detected); } in HUFv07_decompress4X4_usingDTable_internal()
2430 if (dtd.tableType != 1) return ERROR(GENERIC); in HUFv07_decompress4X4_usingDTable()
2441 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv07_decompress4X4_DCtx()
2524 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUFv07_decompress()
2525 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUFv07_decompress()
2540 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUFv07_decompress4X_DCtx()
2541 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUFv07_decompress4X_DCtx()
2554 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUFv07_decompress4X_hufOnly()
2555 if ((cSrcSize >= dstSize) || (cSrcSize <= 1)) return ERROR(corruption_detected); /* invalid */ in HUFv07_decompress4X_hufOnly()
2566 if (dstSize == 0) return ERROR(dstSize_tooSmall); in HUFv07_decompress1X_DCtx()
2567 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */ in HUFv07_decompress1X_DCtx()
3134 if (srcSize < ZSTDv07_frameHeaderSize_min) return ERROR(srcSize_wrong); in ZSTDv07_frameHeaderSize()
3163 return ERROR(prefix_unknown); in ZSTDv07_getFrameParams()
3181 return ERROR(frameParameter_unsupported); in ZSTDv07_getFrameParams()
3186 return ERROR(frameParameter_unsupported); in ZSTDv07_getFrameParams()
3209 return ERROR(frameParameter_unsupported); in ZSTDv07_getFrameParams()
3241 …if (dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID)) return ERROR(dictionary_wrong); in ZSTDv07_decodeFrameHeader()
3260 if (srcSize < ZSTDv07_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv07_getcBlockSize()
3274 if (srcSize > dstCapacity) return ERROR(dstSize_tooSmall); in ZSTDv07_copyRawBlock()
3289 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3296 …if (srcSize < 5) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we … in ZSTDv07_decodeLiteralsBlock()
3319 if (litSize > ZSTDv07_BLOCKSIZE_ABSOLUTEMAX) return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3320 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3325 return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3337 return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3339 return ERROR(dictionary_corrupted); in ZSTDv07_decodeLiteralsBlock()
3345 if (litCSize + lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3348 if (HUFv07_isError(errorCode)) return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3373 if (litSize+lhSize > srcSize) return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3399 …if (srcSize<4) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we ne… in ZSTDv07_decodeLiteralsBlock()
3402 if (litSize > ZSTDv07_BLOCKSIZE_ABSOLUTEMAX) return ERROR(corruption_detected); in ZSTDv07_decodeLiteralsBlock()
3409 return ERROR(corruption_detected); /* impossible */ in ZSTDv07_decodeLiteralsBlock()
3425 if (!srcSize) return ERROR(srcSize_wrong); in ZSTDv07_buildSeqTable()
3426 if ( (*(const BYTE*)src) > max) return ERROR(corruption_detected); in ZSTDv07_buildSeqTable()
3433 if (!flagRepeatTable) return ERROR(corruption_detected); in ZSTDv07_buildSeqTable()
3440 if (FSEv07_isError(headerSize)) return ERROR(corruption_detected); in ZSTDv07_buildSeqTable()
3441 if (tableLog > maxLog) return ERROR(corruption_detected); in ZSTDv07_buildSeqTable()
3457 if (srcSize < MIN_SEQUENCES_SIZE) return ERROR(srcSize_wrong); in ZSTDv07_decodeSeqHeaders()
3464 if (ip+2 > iend) return ERROR(srcSize_wrong); in ZSTDv07_decodeSeqHeaders()
3467 if (ip >= iend) return ERROR(srcSize_wrong); in ZSTDv07_decodeSeqHeaders()
3475 …if (ip + 4 > iend) return ERROR(srcSize_wrong); /* min : header byte + all 3 are "raw", hence no h… in ZSTDv07_decodeSeqHeaders()
3483 if (ZSTDv07_isError(llhSize)) return ERROR(corruption_detected); in ZSTDv07_decodeSeqHeaders()
3487 if (ZSTDv07_isError(ofhSize)) return ERROR(corruption_detected); in ZSTDv07_decodeSeqHeaders()
3491 if (ZSTDv07_isError(mlhSize)) return ERROR(corruption_detected); in ZSTDv07_decodeSeqHeaders()
3602 …if ((oLitEnd>oend_w) | (oMatchEnd>oend)) return ERROR(dstSize_tooSmall); /* last match must start … in ZSTDv07_execSequence()
3603 if (iLitEnd > litLimit) return ERROR(corruption_detected); /* over-read beyond lit buffer */ in ZSTDv07_execSequence()
3613 if (sequence.offset > (size_t)(oLitEnd - vBase)) return ERROR(corruption_detected); in ZSTDv07_execSequence()
3696 if (ERR_isError(errorCode)) return ERROR(corruption_detected); } in ZSTDv07_decompressSequences()
3710 if (nbSeq) return ERROR(corruption_detected); in ZSTDv07_decompressSequences()
3718 if (lastLLSize > (size_t)(oend-op)) return ERROR(dstSize_tooSmall); in ZSTDv07_decompressSequences()
3746 if (srcSize >= ZSTDv07_BLOCKSIZE_ABSOLUTEMAX) return ERROR(srcSize_wrong); in ZSTDv07_decompressBlock_internal()
3782 if (length > dstCapacity) return ERROR(dstSize_tooSmall); in ZSTDv07_generateNxBytes()
3804 if (srcSize < ZSTDv07_frameHeaderSize_min+ZSTDv07_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv07_decompressFrame()
3809 if (srcSize < frameHeaderSize+ZSTDv07_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv07_decompressFrame()
3810 … if (ZSTDv07_decodeFrameHeader(dctx, src, frameHeaderSize)) return ERROR(corruption_detected); in ZSTDv07_decompressFrame()
3823 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong); in ZSTDv07_decompressFrame()
3838 if (remainingSize) return ERROR(srcSize_wrong); in ZSTDv07_decompressFrame()
3842 return ERROR(GENERIC); /* impossible */ in ZSTDv07_decompressFrame()
3894 if (dctx==NULL) return ERROR(memory_allocation); in ZSTDv07_decompress()
3920 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv07_findFrameSizeInfoLegacy()
3931 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown)); in ZSTDv07_findFrameSizeInfoLegacy()
3935 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv07_findFrameSizeInfoLegacy()
3956 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong)); in ZSTDv07_findFrameSizeInfoLegacy()
3988 if (srcSize != dctx->expected) return ERROR(srcSize_wrong); in ZSTDv07_decompressContinue()
3994 if (srcSize != ZSTDv07_frameHeaderSize_min) return ERROR(srcSize_wrong); /* impossible */ in ZSTDv07_decompressContinue()
4030 if (check32 != h32) return ERROR(checksum_wrong); in ZSTDv07_decompressContinue()
4052 return ERROR(GENERIC); /* not yet handled */ in ZSTDv07_decompressContinue()
4058 return ERROR(GENERIC); /* impossible */ in ZSTDv07_decompressContinue()
4079 return ERROR(GENERIC); /* impossible */ in ZSTDv07_decompressContinue()
4099 if (HUFv07_isError(hSize)) return ERROR(dictionary_corrupted); in ZSTDv07_loadEntropy()
4106 if (FSEv07_isError(offcodeHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv07_loadEntropy()
4107 if (offcodeLog > OffFSELog) return ERROR(dictionary_corrupted); in ZSTDv07_loadEntropy()
4109 if (FSEv07_isError(errorCode)) return ERROR(dictionary_corrupted); } in ZSTDv07_loadEntropy()
4116 if (FSEv07_isError(matchlengthHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv07_loadEntropy()
4117 if (matchlengthLog > MLFSELog) return ERROR(dictionary_corrupted); in ZSTDv07_loadEntropy()
4119 if (FSEv07_isError(errorCode)) return ERROR(dictionary_corrupted); } in ZSTDv07_loadEntropy()
4126 if (FSEv07_isError(litlengthHeaderSize)) return ERROR(dictionary_corrupted); in ZSTDv07_loadEntropy()
4127 if (litlengthLog > LLFSELog) return ERROR(dictionary_corrupted); in ZSTDv07_loadEntropy()
4129 if (FSEv07_isError(errorCode)) return ERROR(dictionary_corrupted); } in ZSTDv07_loadEntropy()
4133 if (dictPtr+12 > dictEnd) return ERROR(dictionary_corrupted); in ZSTDv07_loadEntropy()
4134 …E32(dictPtr+0); if (dctx->rep[0] == 0 || dctx->rep[0] >= dictSize) return ERROR(dictionary_corrupt… in ZSTDv07_loadEntropy()
4135 …E32(dictPtr+4); if (dctx->rep[1] == 0 || dctx->rep[1] >= dictSize) return ERROR(dictionary_corrupt… in ZSTDv07_loadEntropy()
4136 …E32(dictPtr+8); if (dctx->rep[2] == 0 || dctx->rep[2] >= dictSize) return ERROR(dictionary_corrupt… in ZSTDv07_loadEntropy()
4156 if (ZSTDv07_isError(eSize)) return ERROR(dictionary_corrupted); in ZSTDv07_decompress_insertDictionary()
4173 if (ZSTDv07_isError(errorCode)) return ERROR(dictionary_corrupted); in ZSTDv07_decompressBegin_usingDict()
4412 return ERROR(init_missing); in ZBUFFv07_decompressContinue()
4448 if (zbd->inBuff == NULL) return ERROR(memory_allocation); in ZBUFFv07_decompressContinue()
4455 if (zbd->outBuff == NULL) return ERROR(memory_allocation); in ZBUFFv07_decompressContinue()
4487 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv07_decompressContinue()
4523 default: return ERROR(GENERIC); /* impossible */ in ZBUFFv07_decompressContinue()