• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/contrib/zstd/lib/legacy/

Lines Matching defs:ERROR

381     if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }
390 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */
410 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */
558 #define ERROR(name) (size_t)-PREFIX(name)
574 ERR_STATIC unsigned ERR_isError(size_t code) { return (code > ERROR(maxCode)); }
1101 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
1102 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge);
1132 if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normalizedCounter is incorrect */
1181 if (hbSize < 4) return ERROR(srcSize_wrong);
1184 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge);
1219 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall);
1271 if (remaining != 1) return ERROR(GENERIC);
1275 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong);
1311 if (nbBits < 1) return ERROR(GENERIC); /* min size */
1390 if (op==omax) return ERROR(dstSize_tooSmall); /* dst buffer is full, but cSrc unfinished */
1392 return ERROR(corruption_detected);
1419 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */
1424 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */
1542 if (!srcSize) return ERROR(srcSize_wrong);
1559 if (iSize+1 > srcSize) return ERROR(srcSize_wrong);
1560 if (oSize >= hwSize) return ERROR(corruption_detected);
1571 if (iSize+1 > srcSize) return ERROR(srcSize_wrong);
1581 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected);
1585 if (weightTotal == 0) return ERROR(corruption_detected);
1589 if (tableLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected);
1595 if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 */
1601 if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construction : at least 2 elts of rank 1, must be even */
1634 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */
1711 if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per stream */
1747 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */
1782 if (op1 > opStart2) return ERROR(corruption_detected);
1783 if (op2 > opStart3) return ERROR(corruption_detected);
1784 if (op3 > opStart4) return ERROR(corruption_detected);
1795 if (!endSignal) return ERROR(corruption_detected);
1811 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong);
1932 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge);
1939 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */
1943 {if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */
2073 if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per stream */
2109 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */
2144 if (op1 > opStart2) return ERROR(corruption_detected);
2145 if (op2 > opStart3) return ERROR(corruption_detected);
2146 if (op3 > opStart4) return ERROR(corruption_detected);
2157 if (!endSignal) return ERROR(corruption_detected);
2172 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2265 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge);
2272 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable is too small */
2276 { if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */
2428 if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per stream */
2466 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */
2501 if (op1 > opStart2) return ERROR(corruption_detected);
2502 if (op2 > opStart3) return ERROR(corruption_detected);
2503 if (op3 > opStart4) return ERROR(corruption_detected);
2514 if (!endSignal) return ERROR(corruption_detected);
2529 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2576 if (dstSize == 0) return ERROR(dstSize_tooSmall);
2577 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */
2810 if (srcSize < 3) return ERROR(srcSize_wrong);
2825 if (srcSize > maxDstSize) return ERROR(dstSize_tooSmall);
2841 if (litSize > *maxDstSizePtr) return ERROR(corruption_detected);
2842 if (litCSize + 5 > srcSize) return ERROR(corruption_detected);
2844 if (HUF_isError(HUF_decompress(dst, litSize, ip+5, litCSize))) return ERROR(corruption_detected);
2860 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected);
2879 if (litSize > srcSize-3) return ERROR(corruption_detected);
2894 if (litSize > BLOCKSIZE) return ERROR(corruption_detected);
2916 if (srcSize < 5) return ERROR(srcSize_wrong);
2940 if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at least xxLog bits per type */
2959 if (FSE_isError(headerSize)) return ERROR(GENERIC);
2960 if (LLlog > LLFSELog) return ERROR(corruption_detected);
2969 if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog bits */
2978 if (FSE_isError(headerSize)) return ERROR(GENERIC);
2979 if (Offlog > OffFSELog) return ERROR(corruption_detected);
2988 if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog bits */
2996 if (FSE_isError(headerSize)) return ERROR(GENERIC);
2997 if (MLlog > MLFSELog) return ERROR(corruption_detected);
3101 if (oLitEnd > oend_8) return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance of 8 from oend */
3102 if (oMatchEnd > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */
3103 if (litEnd > litLimit) return ERROR(corruption_detected); /* overRead beyond lit buffer */
3115 if (sequence.offset > (size_t)op) return ERROR(corruption_detected); /* address space overflow test (this test seems kept by clang optimizer) */
3116 //if (match > op) return ERROR(corruption_detected); /* address space overflow test (is clang optimizer removing this test ?) */
3117 if (match < base) return ERROR(corruption_detected);
3194 if (ERR_isError(errorCode)) return ERROR(corruption_detected);
3210 if ( !BIT_endOfDStream(&(seqState.DStream)) ) return ERROR(corruption_detected); /* requested too much : data is corrupted */
3211 if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrupted */
3216 if (litPtr > litEnd) return ERROR(corruption_detected);
3217 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall);
3257 if (srcSize < ZSTD_frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong);
3259 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown);
3271 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong);
3282 return ERROR(GENERIC); /* not yet supported */
3286 if (remainingSize) return ERROR(srcSize_wrong);
3289 return ERROR(GENERIC); /* impossible */
3318 if (srcSize < ZSTD_frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong);
3320 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown);
3331 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong);
3377 if (srcSize != ctx->expected) return ERROR(srcSize_wrong);
3386 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown);
3425 return ERROR(GENERIC); /* not yet handled */
3431 return ERROR(GENERIC);