freetype2/src/gzip
Ben Wagner 8bb7722a53 [gzip] Handle inflate returning Z_NEED_DICT
When `inflate` returns `Z_NEED_DICT` this is currently not reported as
an error and callers may assume that the decompression succeeded when it
did not. In particular, a compressed table in a woff file may not
actually be decompressed and written as expected, leaving the backing
memory for the expanded table uninitialized.

* src/gzlip/ftgzip.c (FT_Gzip_Uncompress): treat `Z_NEED_DICT` as
indicating invalid data since there is no means to provide a dictionary.

Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1335712
2022-06-14 04:49:29 +00:00
..
patches [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
README.freetype [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
adler32.c [gzip] Update sources to zlib 1.2.11 2022-01-09 23:16:00 +01:00
crc32.c [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
crc32.h [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
ftgzip.c [gzip] Handle inflate returning Z_NEED_DICT 2022-06-14 04:49:29 +00:00
ftzconf.h [gzip] Update sources to zlib 1.2.11 2022-01-09 23:16:00 +01:00
gzguts.h [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
infback.c [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
inffast.c [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
inffast.h [gzip] Update sources to zlib 1.2.11 2022-01-09 23:16:00 +01:00
inffixed.h [gzip] Update sources to zlib 1.2.11 2022-01-09 23:16:00 +01:00
inflate.c [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
inflate.h [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
inftrees.c [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
inftrees.h [gzip] Update sources to zlib 1.2.11 2022-01-09 23:16:00 +01:00
rules.mk Update all copyright notices. 2022-01-11 10:54:10 +01:00
zlib.h [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
zutil.c [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00
zutil.h [gzip] Update sources to zlib 1.2.12. 2022-04-01 10:47:23 +02:00

README.freetype

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Name: zlib
Short Name: zlib
URL: http://zlib.net/
Version: 1.2.12
License: see `zlib.h`

Description:
"A massively spiffy yet delicately unobtrusive compression library."

'zlib' is a free, general-purpose, legally unencumbered lossless
data-compression library.  'zlib' implements the "deflate" compression
algorithm described by RFC 1951, which combines the LZ77 (Lempel-Ziv)
algorithm with Huffman coding.  zlib also implements the zlib (RFC 1950) and
gzip (RFC 1952) wrapper formats.

Local Modifications:
The files in this directory have been prepared as follows.

 - Take the unmodified source code files from the zlib distribution that are
   included by `ftgzip.c`.
 - Run zlib's `zlib2ansi` script on all `.c` files.
 - Apply the diff file(s) in the `patches` folder.