]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-compression: Add COMPRESSION_HDR_MAX_SIZE macro
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 8 Sep 2020 17:14:09 +0000 (20:14 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 9 Sep 2020 12:46:13 +0000 (12:46 +0000)
Will be used by the next commit.

src/lib-compression/compression.h

index 5a3404fe63ef23a09d6d340ad514728fe684aaa8..b27d09e8bc864a559c2bc7fd5d43b6f813c25b7b 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef COMPRESSION_H
 #define COMPRESSION_H
 
+/* Compressed input is always detected once at maximum this many bytes have
+   been read. This value must be smaller than a typical istream max buffer
+   size. */
+#define COMPRESSION_HDR_MAX_SIZE 128
+
 struct compression_handler {
        const char *name;
        const char *ext;