From: Timo Sirainen Date: Tue, 8 Sep 2020 17:14:09 +0000 (+0300) Subject: lib-compression: Add COMPRESSION_HDR_MAX_SIZE macro X-Git-Tag: 2.3.13~249 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1ca1ba084b24b13a60e357a9f3c1f0da492e75c;p=thirdparty%2Fdovecot%2Fcore.git lib-compression: Add COMPRESSION_HDR_MAX_SIZE macro Will be used by the next commit. --- diff --git a/src/lib-compression/compression.h b/src/lib-compression/compression.h index 5a3404fe63..b27d09e8bc 100644 --- a/src/lib-compression/compression.h +++ b/src/lib-compression/compression.h @@ -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;