Skip to content

Commit 805cd72

Browse files
committed
Document why we compile zlib
1 parent 0e16c91 commit 805cd72

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

php-80/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ RUN mkdir -p ${BUILD_DIR} \
7171

7272
###############################################################################
7373
# ZLIB Build
74+
# We compile a newer version because Lambda uses an old version (1.2.7) that
75+
# has a security vulnerability (CVE-2022-37434).
76+
# See https://github.com/brefphp/aws-lambda-layers/pull/110
77+
# Can be removed once Lambda updates their version.
7478
# https://github.com/madler/zlib/releases
7579
# Needed for:
7680
# - openssl

php-81/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ RUN mkdir -p ${BUILD_DIR} \
7171

7272
###############################################################################
7373
# ZLIB Build
74+
# We compile a newer version because Lambda uses an old version (1.2.7) that
75+
# has a security vulnerability (CVE-2022-37434).
76+
# See https://github.com/brefphp/aws-lambda-layers/pull/110
77+
# Can be removed once Lambda updates their version.
7478
# https://github.com/madler/zlib/releases
7579
# Needed for:
7680
# - openssl

php-82/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ RUN mkdir -p ${BUILD_DIR} \
7171

7272
###############################################################################
7373
# ZLIB Build
74+
# We compile a newer version because Lambda uses an old version (1.2.7) that
75+
# has a security vulnerability (CVE-2022-37434).
76+
# See https://github.com/brefphp/aws-lambda-layers/pull/110
77+
# Can be removed once Lambda updates their version.
7478
# https://github.com/madler/zlib/releases
7579
# Needed for:
7680
# - openssl

0 commit comments

Comments
 (0)