node/deps/zlib
Anna Henningsen 45ba14b3be
deps: fix zlib compilation for CPUs without SIMD features
Fix the compile flags so that zlib can run on CPUs that do
not have SSSE3/SSE4.2/etc. Do not compile zlib with flags that
indicate that those features are available, and instead enable
them selectively for functions that use them.

There are probably better way to do this, e.g. through gyp file
modifications as suggested in the issue. However, this patch
should do just fine until that happens.

Fixes: https://github.com/nodejs/node/issues/32553

PR-URL: https://github.com/nodejs/node/pull/32627
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/45387
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2022-11-21 15:16:25 -05:00
..
contrib deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
google deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
patches deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
win32
adler32.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
adler32_simd.c deps: fix zlib compilation for CPUs without SIMD features 2022-11-21 15:16:25 -05:00
adler32_simd.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
BUILD.gn deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
chromeconf.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
compress.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
cpu_features.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
cpu_features.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
crc32.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
crc32.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
crc32_simd.c deps: fix zlib compilation for CPUs without SIMD features 2022-11-21 15:16:25 -05:00
crc32_simd.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
crc_folding.c deps: fix zlib compilation for CPUs without SIMD features 2022-11-21 15:16:25 -05:00
deflate.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
deflate.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
DIR_METADATA deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
gzclose.c
gzguts.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
gzlib.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
gzread.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
gzwrite.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
infback.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
inffast.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
inffast.h
inffixed.h
inflate.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
inflate.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
inftrees.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
inftrees.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
LICENSE deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
OWNERS deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
README.chromium deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
slide_hash_simd.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
trees.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
trees.h
uncompr.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
zconf.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
zlib.gyp deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
zlib.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
zutil.c deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05:00
zutil.h deps: update zlib to upstream 8bbd6c31 2022-11-21 15:16:24 -05: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.13
CPEPrefix: cpe:/a:zlib:zlib:1.2.13
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.
 - In sync with 1.2.13 official release
 - ZIP reader modified to allow for progress callbacks during extraction.
 - ZIP reader modified to add detection of AES encrypted content.