]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added error code workSpace_tooSmall
authorYann Collet <cyan@fb.com>
Mon, 26 Feb 2018 23:11:50 +0000 (15:11 -0800)
committerYann Collet <cyan@fb.com>
Mon, 26 Feb 2018 23:11:50 +0000 (15:11 -0800)
lib/common/error_private.c
lib/common/zstd_errors.h

index 11f7cdab1c6007f479446f90c18256681e7bf0e4..d004ee636c67971408ad81d457ac80d445c6097b 100644 (file)
@@ -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";
index 2af61f3bd476eacc613287969639b8b3957715c4..57533f28696b38626162f8a22d3e609485eda8ba 100644 (file)
@@ -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 */