aboutsummaryrefslogtreecommitdiff
path: root/include/sqfs/compressor.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-06-04 05:32:47 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-06-04 05:38:40 +0200
commit30597cc7c5d566f671c84c025de97cb1fc2d242e (patch)
tree985410632a31d952fb3430c001ed5e7780cf0e0b /include/sqfs/compressor.h
parent0f23f0396aede08a5d0c95d75b272f1b1787a365 (diff)
Strictly enfore min/max dictionary size in XZ & LZMA compressors
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/compressor.h')
-rw-r--r--include/sqfs/compressor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sqfs/compressor.h b/include/sqfs/compressor.h
index c8cab02..7e687f6 100644
--- a/include/sqfs/compressor.h
+++ b/include/sqfs/compressor.h
@@ -410,6 +410,12 @@ typedef enum {
#define SQFS_LZMA_MAX_PB 4
#define SQFS_LZMA_DEFAULT_PB 2
+#define SQFS_LZMA_MIN_DICT_SIZE SQFS_META_BLOCK_SIZE
+#define SQFS_LZMA_MAX_DICT_SIZE SQFS_MAX_BLOCK_SIZE
+
+#define SQFS_XZ_MIN_DICT_SIZE SQFS_META_BLOCK_SIZE
+#define SQFS_XZ_MAX_DICT_SIZE SQFS_MAX_BLOCK_SIZE
+
#ifdef __cplusplus
extern "C" {
#endif