From e377e65f1133b60aa92ad69e0e24c65212c3d5d6 Mon Sep 17 00:00:00 2001 From: Zoltan Szabadka Date: Thu, 2 Apr 2015 11:12:04 +0200 Subject: [PATCH] Limit the max input meta-block size to 16MB. --- enc/encode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enc/encode.h b/enc/encode.h index f34266f..ab5a9b5 100644 --- a/enc/encode.h +++ b/enc/encode.h @@ -30,7 +30,7 @@ namespace brotli { static const int kMaxWindowBits = 24; static const int kMinWindowBits = 16; static const int kMinInputBlockBits = 16; -static const int kMaxInputBlockBits = 28; +static const int kMaxInputBlockBits = 24; struct BrotliParams { BrotliParams() @@ -52,7 +52,7 @@ struct BrotliParams { int quality; // Base 2 logarithm of the sliding window size. Range is 16 to 24. int lgwin; - // Base 2 logarithm of the maximum input block size. Range is 16 to 28. + // Base 2 logarithm of the maximum input block size. Range is 16 to 24. // If set to 0, the value will be set based on the quality. int lgblock;