From 6a92b1fadde26477a9179cbea988b3e04bd2decc Mon Sep 17 00:00:00 2001 From: Moazin Khatti Date: Tue, 11 Jun 2019 21:29:52 +0500 Subject: [PATCH] [gzip] Add support for `gzip' encoded header (#9812). --- ChangeLog | 7 +++++++ src/gzip/ftgzip.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6e07120d7..7aa3815db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-06-11 Moazin Khatti + + [gzip] Add support for `gzip' encoded header. + + * src/gzip/ftgzip.c (FT_Gzip_Uncompress): Modify the the call to + `inflateInit2' to enable support for `gzip' encoded headers. + 2019-06-10 Alexei Podtelezhnikov [type1,type42] Use `const' for string literals. diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c index a5206307f..5e78bc6f8 100644 --- a/src/gzip/ftgzip.c +++ b/src/gzip/ftgzip.c @@ -746,7 +746,7 @@ stream.zfree = (free_func) ft_gzip_free; stream.opaque = memory; - err = inflateInit2( &stream, MAX_WBITS ); + err = inflateInit2( &stream, MAX_WBITS|32 ); if ( err != Z_OK ) return FT_THROW( Invalid_Argument );