File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed
Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -72,26 +72,18 @@ RUN mkdir -p ${BUILD_DIR} \
7272
7373# ##############################################################################
7474# ZLIB Build
75+ # We compile a newer version because Lambda uses an old version (1.2.7) that
76+ # has a security vulnerability (CVE-2022-37434).
77+ # See https://github.com/brefphp/aws-lambda-layers/pull/110
78+ # Can be removed once Lambda updates their version.
7579# https://github.com/madler/zlib/releases
76- # Needed for:
77- # - openssl
78- # - curl
79- # - php
80- # Used By:
81- # - xml2
8280ENV VERSION_ZLIB=1.3
83- ENV ZLIB_BUILD_DIR=${BUILD_DIR}/xml2
84-
81+ ENV ZLIB_BUILD_DIR=${BUILD_DIR}/zlib
8582RUN set -xe; \
8683 mkdir -p ${ZLIB_BUILD_DIR}; \
87- # Download and upack the source code
88- curl -Ls http://zlib.net/zlib-${VERSION_ZLIB}.tar.xz \
84+ curl -Ls https://zlib.net/zlib-${VERSION_ZLIB}.tar.xz \
8985 | tar xJC ${ZLIB_BUILD_DIR} --strip-components=1
90-
91- # Move into the unpackaged code directory
9286WORKDIR ${ZLIB_BUILD_DIR}/
93-
94- # Configure the build
9587RUN set -xe; \
9688 make distclean \
9789 && CFLAGS="" \
You can’t perform that action at this time.
0 commit comments