No description
  • C 81.8%
  • C++ 17.9%
  • Makefile 0.2%
Find a file
Sadaf Ebrahimi a633994436
Fix a bug when getting a gzip header extra field with inflate().
If the extra field was larger than the space the user provided with
inflateGetHeader(), and if multiple calls of inflate() delivered
the extra header data, then there could be a buffer overflow of the
provided space. This commit assures that provided space is not
exceeded.

Bug: http://b/242299736
Test: TreeHugger

Change-Id: I4eabb3e135c1568e06b2b9740651a3ae11b21140
(cherry picked from commit 172924248227e1da88a8e963c18dc6f38b725f7a)
Merged-In: I4eabb3e135c1568e06b2b9740651a3ae11b21140
2023-03-16 19:39:23 -06:00
contrib Fix a bug when getting a gzip header extra field with inflate(). 2023-03-16 19:39:23 -06:00
google [base] Remove base::StringPiece::as_string() usages 2021-04-29 09:19:29 -07:00
patches [zlib] Zero-initialize the window used for deflation 2020-11-03 18:15:33 -08:00
adler32.c Fix race on x86_cpu_enable_ssse3 2021-01-29 16:30:39 -08:00
adler32_simd.c zlib adler_simd.c: unsigned cast |blocks| on assignment 2017-12-20 07:42:57 +00:00
adler32_simd.h zlib adler_simd.c 2017-09-29 19:44:25 +00:00
Android.bp Add LOCAL_LICENSE_KINDS to external/zlib 2021-02-12 17:50:42 +00:00
BUILD.gn Remove zlib unittests from unit_tests; they have their own test binary 2020-11-20 17:25:17 -08:00
chromeconf.h [zlib] Expose Intel SSE2 via CPU features 2020-04-21 08:30:00 +00:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:04:50 -08:00
compress.c Increasing the expected compressed output size 2019-08-05 23:18:29 +00:00
cpu_features.c mac/arm64: Make zlib actually link. 2020-07-06 23:44:43 +00:00
cpu_features.h [zlib] Expose Intel SSE2 via CPU features 2020-04-21 08:30:00 +00:00
crc32.c [zlib] Add crc_folding.c feature config and use it in crc32.c 2020-04-21 12:11:09 +00:00
crc32.h Update Zlib to version 1.2.8 2016-06-23 04:23:48 +00:00
crc32_simd.c Unify optimized insert_string implementations 2019-12-12 20:49:49 +00:00
crc32_simd.h Unify optimized insert_string implementations 2019-12-12 20:49:49 +00:00
crc_folding.c [zlib] Fix gcc parenthesis warning in crc_folding.c from V8 roll 2020-04-29 12:54:01 +00:00
deflate.c [zlib] Zero-initialize the window used for deflation 2020-11-03 18:15:33 -08:00
deflate.h remove 16-byte alignment from deflate_state::crc0 2018-09-20 20:34:42 +00:00
DIR_METADATA Add DIR_METADATA files to some directories under //third_party 2020-12-07 15:14:28 -08:00
fill_window_sse.c [zlib] Wrap deflate crc_folding and fill_window_sse features in guards 2020-04-22 03:02:47 +00:00
gzclose.c Complete update of zlib from 1.2.3 to 1.2.5. 2013-04-09 17:15:13 +00:00
gzguts.h Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
gzlib.c Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
gzread.c Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
gzwrite.c Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
infback.c Share inffast names in zlib 2018-02-13 19:57:43 +00:00
inffast.c Share inffast names in zlib 2018-02-13 19:57:43 +00:00
inffast.h Share inffast names in zlib 2018-02-13 19:57:43 +00:00
inffixed.h Update Zlib to version 1.2.8 2016-06-23 04:23:48 +00:00
inflate.c Fix a bug when getting a gzip header extra field with inflate(). 2023-03-16 19:39:23 -06:00
inflate.h Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
inftrees.c Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
inftrees.h Separate the Android build stuff from the upstream zlib stuff. 2012-05-10 17:28:12 -07:00
libz.map.txt zlib.h: annotate late arrivals with their API level. 2020-05-01 10:40:57 -07:00
LICENSE Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
METADATA Upgrade zlib to eb9ce8c993 2021-05-06 13:15:08 -07:00
MODULE_LICENSE_BSD_LIKE auto import from //depot/cupcake/@135843 2009-03-03 19:31:38 -08:00
OWNERS Add DIR_METADATA files to some directories under //third_party 2020-12-07 15:14:28 -08:00
OWNERS.android zlib: add OWNERS.android for the local janitors. 2019-12-10 21:39:13 +00:00
README.chromium Adding CPEPrefixes for more dependencies. 2020-04-03 03:20:26 +00:00
TEST_MAPPING recovery_host_test is already running in presubmit 2021-02-05 09:34:41 -08:00
trees.c Prevent generating out-of-bounds distances in zlib 2018-08-17 06:16:32 +00:00
trees.h Separate the Android build stuff from the upstream zlib stuff. 2012-05-10 17:28:12 -07:00
uncompr.c Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
zconf.h Upgrade zlib to ddd7b06cf8 2019-08-14 13:59:44 -07:00
zlib.h zlib.h: annotate late arrivals with their API level. 2020-05-01 10:40:57 -07:00
zutil.c Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00
zutil.h Update zlib to 1.2.11 2017-02-15 06:15:29 +00:00

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.11
CPEPrefix: cpe:/a:zlib:zlib:1.2.11
Security Critical: yes
License: Custom license
License File: LICENSE
License Android Compatible: yes

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:
 - Only source code from the zlib distribution used to build the zlib and
   minizip libraries are present. Many other files have been omitted. Only *.c
   and *.h files from the upstream root directory and contrib/minizip were
   imported.
 - The contents of the google directory are original Chromium-specific
   additions.
 - Added chromeconf.h
 - Plus the changes in 'patches' folder.
 - Code in contrib/ other than contrib/minizip was added to match zlib's
   contributor layout.