[2020-02] Use upstream zlib 1.2.12 (#21460)mono-6.12.0.177
commited0788bf61f08a1f0424de4be6f6af1949519e10
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 20 Apr 2022 09:26:15 +0000 (20 11:26 +0200)
committerGitHub <noreply@github.com>
Wed, 20 Apr 2022 09:26:15 +0000 (20 11:26 +0200)
treed6240239b808df97bc5798d4b244772dc0959f77
parent86118d5810b589c29df005b93aba42100a89bd82
[2020-02] Use upstream zlib 1.2.12 (#21460)

* Use upstream zlib 1.2.12

* [zlib] Cherrypick upstream crc32 fix

Cherrypick crc32 fix to restore pre-1.2.12 behavior

https://github.com/madler/zlib/commit/ec3df00224d4b396e2ac6586ab5d25f673caa4c2

> The previous releases of zlib were not sensitive to incorrect CRC
> inputs with bits set above the low 32. This commit restores that
> behavior, so that applications with such bugs will continue to
> operate as before.

Co-authored-by: Aleksey Kliger <alklig@microsoft.com>
14 files changed:
mono/zlib/crc32.c
mono/zlib/crc32.h
mono/zlib/deflate.c
mono/zlib/deflate.h
mono/zlib/gzguts.h
mono/zlib/infback.c
mono/zlib/inffast.c
mono/zlib/inflate.c
mono/zlib/inflate.h
mono/zlib/inftrees.c
mono/zlib/trees.c
mono/zlib/zlib.h
mono/zlib/zutil.c
mono/zlib/zutil.h