From: Yann Collet Date: Mon, 26 Feb 2018 23:11:50 +0000 (-0800) Subject: added error code workSpace_tooSmall X-Git-Tag: v1.3.4~1^2~46^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89741653abc390a1fa879b460720b79e5385f9bc;p=thirdparty%2Fzstd.git added error code workSpace_tooSmall --- diff --git a/lib/common/error_private.c b/lib/common/error_private.c index 11f7cdab1..d004ee636 100644 --- a/lib/common/error_private.c +++ b/lib/common/error_private.c @@ -29,6 +29,7 @@ const char* ERR_getErrorString(ERR_enum code) case PREFIX(parameter_outOfBound): return "Parameter is out of bound"; case PREFIX(init_missing): return "Context should be init first"; case PREFIX(memory_allocation): return "Allocation error : not enough memory"; + case PREFIX(workSpace_tooSmall): return "workSpace buffer is not large enough"; case PREFIX(stage_wrong): return "Operation not authorized at current processing stage"; case PREFIX(tableLog_tooLarge): return "tableLog requires too much memory : unsupported"; case PREFIX(maxSymbolValue_tooLarge): return "Unsupported max Symbol Value : too large"; diff --git a/lib/common/zstd_errors.h b/lib/common/zstd_errors.h index 2af61f3bd..57533f286 100644 --- a/lib/common/zstd_errors.h +++ b/lib/common/zstd_errors.h @@ -69,6 +69,7 @@ typedef enum { ZSTD_error_stage_wrong = 60, ZSTD_error_init_missing = 62, ZSTD_error_memory_allocation = 64, + ZSTD_error_workSpace_tooSmall= 66, ZSTD_error_dstSize_tooSmall = 70, ZSTD_error_srcSize_wrong = 72, /* following error codes are __NOT STABLE__, they can be removed or changed in future versions */