lzms-compress.c: Don't underrun window when checking recent offsets
[wimlib] / include / wimlib / lzms.h
index 798b339c5fc63856586c971158a5e183355cee4a..76381a416829de89773d65de795d788cd7b06b7f 100644 (file)
@@ -16,6 +16,7 @@
 #endif
 
 #define LZMS_NUM_RECENT_OFFSETS                        3
+#define LZMS_MAX_INIT_RECENT_OFFSET            (LZMS_NUM_RECENT_OFFSETS + 1)
 
 #define LZMS_PROBABILITY_BITS                  6
 #define LZMS_PROBABILITY_MAX                   (1U << LZMS_PROBABILITY_BITS)