Lines Matching defs:ERROR

389     if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }
398 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */
424 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */
571 #define ERROR(name) (size_t)-PREFIX(name)
587 ERR_STATIC unsigned ERR_isError(size_t code) { return (code > ERROR(maxCode)); }
1113 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
1114 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge);
1144 if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normalizedCounter is incorrect */
1193 if (hbSize < 4) return ERROR(srcSize_wrong);
1196 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge);
1231 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall);
1283 if (remaining != 1) return ERROR(GENERIC);
1287 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong);
1323 if (nbBits < 1) return ERROR(GENERIC); /* min size */
1402 if (op==omax) return ERROR(dstSize_tooSmall); /* dst buffer is full, but cSrc unfinished */
1404 return ERROR(corruption_detected);
1431 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */
1436 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */
1550 if (!srcSize) return ERROR(srcSize_wrong);
1567 if (iSize+1 > srcSize) return ERROR(srcSize_wrong);
1568 if (oSize >= hwSize) return ERROR(corruption_detected);
1579 if (iSize+1 > srcSize) return ERROR(srcSize_wrong);
1589 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected);
1593 if (weightTotal == 0) return ERROR(corruption_detected);
1597 if (tableLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected);
1603 if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 */
1609 if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construction : at least 2 elts of rank 1, must be even */
1642 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */
1719 if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per stream */
1755 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */
1790 if (op1 > opStart2) return ERROR(corruption_detected);
1791 if (op2 > opStart3) return ERROR(corruption_detected);
1792 if (op3 > opStart4) return ERROR(corruption_detected);
1803 if (!endSignal) return ERROR(corruption_detected);
1819 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong);
1940 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge);
1947 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */
1951 { if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */
2081 if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per stream */
2117 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */
2152 if (op1 > opStart2) return ERROR(corruption_detected);
2153 if (op2 > opStart3) return ERROR(corruption_detected);
2154 if (op3 > opStart4) return ERROR(corruption_detected);
2165 if (!endSignal) return ERROR(corruption_detected);
2180 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2227 if (dstSize == 0) return ERROR(dstSize_tooSmall);
2228 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */
2464 if (srcSize < 3) return ERROR(srcSize_wrong);
2479 if (srcSize > maxDstSize) return ERROR(dstSize_tooSmall);
2497 if (litSize > *maxDstSizePtr) return ERROR(corruption_detected);
2498 if (litCSize + 5 > srcSize) return ERROR(corruption_detected);
2500 if (HUF_isError(HUF_decompress(dst, litSize, ip+5, litCSize))) return ERROR(corruption_detected);
2516 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected);
2535 if (litSize > BLOCKSIZE) return ERROR(corruption_detected);
2536 if (litSize > srcSize-3) return ERROR(corruption_detected);
2551 if (litSize > BLOCKSIZE) return ERROR(corruption_detected);
2573 if (srcSize < 5) return ERROR(srcSize_wrong);
2597 if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at least xxLog bits per type */
2616 if (FSE_isError(headerSize)) return ERROR(GENERIC);
2617 if (LLlog > LLFSELog) return ERROR(corruption_detected);
2626 if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog bits */
2635 if (FSE_isError(headerSize)) return ERROR(GENERIC);
2636 if (Offlog > OffFSELog) return ERROR(corruption_detected);
2645 if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog bits */
2653 if (FSE_isError(headerSize)) return ERROR(GENERIC);
2654 if (MLlog > MLFSELog) return ERROR(corruption_detected);
2758 if (oLitEnd > oend_8) return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance of 8 from oend */
2759 if (oMatchEnd > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */
2760 if (litEnd > litLimit) return ERROR(corruption_detected); /* overRead beyond lit buffer */
2772 if (sequence.offset > (size_t)op) return ERROR(corruption_detected); /* address space overflow test (this test seems kept by clang optimizer) */
2773 //if (match > op) return ERROR(corruption_detected); /* address space overflow test (is clang optimizer removing this test ?) */
2774 if (match < base) return ERROR(corruption_detected);
2851 if (ERR_isError(errorCode)) return ERROR(corruption_detected);
2867 if ( !BIT_endOfDStream(&(seqState.DStream)) ) return ERROR(corruption_detected); /* requested too much : data is corrupted */
2868 if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrupted */
2873 if (litPtr > litEnd) return ERROR(corruption_detected);
2874 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall);
2916 if (srcSize < ZSTD_frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong);
2918 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown);
2930 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong);
2941 return ERROR(GENERIC); /* not yet supported */
2945 if (remainingSize) return ERROR(srcSize_wrong);
2948 return ERROR(GENERIC); /* impossible */
2986 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong));
2991 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown));
3008 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong));
3059 if (srcSize != ctx->expected) return ERROR(srcSize_wrong);
3068 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown);
3107 return ERROR(GENERIC); /* not yet handled */
3113 return ERROR(GENERIC);