Lines Matching defs:ERROR

386     if (srcSize < 1) { memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }
395 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */
421 if (contain32 == 0) return ERROR(GENERIC); /* endMark not present */
569 #define ERROR(name) (size_t)-PREFIX(name)
585 ERR_STATIC unsigned ERR_isError(size_t code) { return (code > ERROR(maxCode)); }
1112 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) return ERROR(maxSymbolValue_tooLarge);
1113 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge);
1143 if (position!=0) return ERROR(GENERIC); /* position must reach all cells once, otherwise normalizedCounter is incorrect */
1192 if (hbSize < 4) return ERROR(srcSize_wrong);
1195 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge);
1230 if (n0 > *maxSVPtr) return ERROR(maxSymbolValue_tooSmall);
1282 if (remaining != 1) return ERROR(GENERIC);
1286 if ((size_t)(ip-istart) > hbSize) return ERROR(srcSize_wrong);
1322 if (nbBits < 1) return ERROR(GENERIC); /* min size */
1401 if (op==omax) return ERROR(dstSize_tooSmall); /* dst buffer is full, but cSrc unfinished */
1403 return ERROR(corruption_detected);
1430 if (cSrcSize<2) return ERROR(srcSize_wrong); /* too small input size */
1435 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong); /* too small input size */
1553 if (!srcSize) return ERROR(srcSize_wrong);
1570 if (iSize+1 > srcSize) return ERROR(srcSize_wrong);
1571 if (oSize >= hwSize) return ERROR(corruption_detected);
1582 if (iSize+1 > srcSize) return ERROR(srcSize_wrong);
1592 if (huffWeight[n] >= HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected);
1596 if (weightTotal == 0) return ERROR(corruption_detected);
1600 if (tableLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected);
1606 if (verif != rest) return ERROR(corruption_detected); /* last value must be a clean power of 2 */
1612 if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construction : at least 2 elts of rank 1, must be even */
1645 if (tableLog > DTable[0]) return ERROR(tableLog_tooLarge); /* DTable is too small */
1722 if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per stream */
1758 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */
1793 if (op1 > opStart2) return ERROR(corruption_detected);
1794 if (op2 > opStart3) return ERROR(corruption_detected);
1795 if (op3 > opStart4) return ERROR(corruption_detected);
1806 if (!endSignal) return ERROR(corruption_detected);
1822 if (errorCode >= cSrcSize) return ERROR(srcSize_wrong);
1943 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge);
1950 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable can't fit code depth */
1954 {if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */
2084 if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per stream */
2120 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */
2155 if (op1 > opStart2) return ERROR(corruption_detected);
2156 if (op2 > opStart3) return ERROR(corruption_detected);
2157 if (op3 > opStart4) return ERROR(corruption_detected);
2168 if (!endSignal) return ERROR(corruption_detected);
2183 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2276 if (memLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(tableLog_tooLarge);
2283 if (tableLog > memLog) return ERROR(tableLog_tooLarge); /* DTable is too small */
2287 { if (!maxW) return ERROR(GENERIC); } /* necessarily finds a solution before maxW==0 */
2439 if (cSrcSize < 10) return ERROR(corruption_detected); /* strict minimum : jump table + 1 byte per stream */
2477 if (length4 > cSrcSize) return ERROR(corruption_detected); /* overflow */
2512 if (op1 > opStart2) return ERROR(corruption_detected);
2513 if (op2 > opStart3) return ERROR(corruption_detected);
2514 if (op3 > opStart4) return ERROR(corruption_detected);
2525 if (!endSignal) return ERROR(corruption_detected);
2540 if (hSize >= cSrcSize) return ERROR(srcSize_wrong);
2587 if (dstSize == 0) return ERROR(dstSize_tooSmall);
2588 if (cSrcSize > dstSize) return ERROR(corruption_detected); /* invalid */
2823 if (srcSize < 3) return ERROR(srcSize_wrong);
2838 if (srcSize > maxDstSize) return ERROR(dstSize_tooSmall);
2856 if (litSize > *maxDstSizePtr) return ERROR(corruption_detected);
2857 if (litCSize + 5 > srcSize) return ERROR(corruption_detected);
2859 if (HUF_isError(HUF_decompress(dst, litSize, ip+5, litCSize))) return ERROR(corruption_detected);
2875 if (srcSize < MIN_CBLOCK_SIZE) return ERROR(corruption_detected);
2894 if (litSize > BLOCKSIZE) return ERROR(corruption_detected);
2895 if (litSize > srcSize-3) return ERROR(corruption_detected);
2910 if (litSize > BLOCKSIZE) return ERROR(corruption_detected);
2932 if (srcSize < 5) return ERROR(srcSize_wrong);
2956 if (ip > iend-3) return ERROR(srcSize_wrong); /* min : all 3 are "raw", hence no header, but at least xxLog bits per type */
2975 if (FSE_isError(headerSize)) return ERROR(GENERIC);
2976 if (LLlog > LLFSELog) return ERROR(corruption_detected);
2985 if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog bits */
2994 if (FSE_isError(headerSize)) return ERROR(GENERIC);
2995 if (Offlog > OffFSELog) return ERROR(corruption_detected);
3004 if (ip > iend-2) return ERROR(srcSize_wrong); /* min : "raw", hence no header, but at least xxLog bits */
3012 if (FSE_isError(headerSize)) return ERROR(GENERIC);
3013 if (MLlog > MLFSELog) return ERROR(corruption_detected);
3117 if (oLitEnd > oend_8) return ERROR(dstSize_tooSmall); /* last match must start at a minimum distance of 8 from oend */
3118 if (oMatchEnd > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */
3119 if (litEnd > litLimit) return ERROR(corruption_detected); /* overRead beyond lit buffer */
3131 if (sequence.offset > (size_t)op) return ERROR(corruption_detected); /* address space overflow test (this test seems kept by clang optimizer) */
3132 //if (match > op) return ERROR(corruption_detected); /* address space overflow test (is clang optimizer removing this test ?) */
3133 if (match < base) return ERROR(corruption_detected);
3210 if (ERR_isError(errorCode)) return ERROR(corruption_detected);
3226 if ( !BIT_endOfDStream(&(seqState.DStream)) ) return ERROR(corruption_detected); /* requested too much : data is corrupted */
3227 if (nbSeq<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrupted */
3232 if (litPtr > litEnd) return ERROR(corruption_detected);
3233 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall);
3275 if (srcSize < ZSTD_frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong);
3277 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown);
3289 if (cBlockSize > remainingSize) return ERROR(srcSize_wrong);
3300 return ERROR(GENERIC); /* not yet supported */
3304 if (remainingSize) return ERROR(srcSize_wrong);
3307 return ERROR(GENERIC); /* impossible */
3345 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong));
3350 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(prefix_unknown));
3367 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, ERROR(srcSize_wrong));
3417 if (srcSize != ctx->expected) return ERROR(srcSize_wrong);
3426 if (magicNumber != ZSTD_magicNumber) return ERROR(prefix_unknown);
3465 return ERROR(GENERIC); /* not yet handled */
3471 return ERROR(GENERIC);