fixed new MIN_CBLOCK_SIZE
diff --git a/lib/zstd_decompress.c b/lib/zstd_decompress.c
index 096d90f..a0f4d2d 100644
--- a/lib/zstd_decompress.c
+++ b/lib/zstd_decompress.c
@@ -351,14 +351,14 @@
                 break;
             }
 
-            if (litSize > srcSize-11)   /* risk of reading beyond src buffer with wildcopy */
+            if (litSize+WILDCOPY_OVERLENGTH > srcSize)   /* risk reading beyond src buffer with wildcopy */
             {
                 if (litSize > srcSize-lhSize) return ERROR(corruption_detected);
                 memcpy(dctx->litBuffer, istart+lhSize, litSize);
                 dctx->litPtr = dctx->litBuffer;
                 dctx->litBufSize = BLOCKSIZE+8;
                 dctx->litSize = litSize;
-                return litSize+lhSize;
+                return lhSize+litSize;
             }
             /* direct reference into compressed stream */
             dctx->litPtr = istart+lhSize;