Skip to content

Commit 3af7e14

Browse files
committed
Allow api-ms-win-crt-private-l1-1-0.dll
1 parent ca3a44a commit 3af7e14

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/validation.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,13 @@ const PE_ALLOWED_LIBRARIES: &[&str] = &[
140140
"tk86t.dll",
141141
];
142142

143-
// CPython 3.14 and ARM64 use tcl/tk 8.6.14+ which includes a bundled zlib and dynamically links to msvcrt.
144-
const PE_ALLOWED_LIBRARIES_314: &[&str] = &["msvcrt.dll", "zlib1.dll"];
143+
// CPython 3.14 and ARM64 use a newer version of tcl/tk (8.6.14+) which includes a bundled zlib that
144+
// dynamically links some system libraries
145+
const PE_ALLOWED_LIBRARIES_314: &[&str] = &[
146+
"zlib1.dll",
147+
"api-ms-win-crt-private-l1-1-0.dll", // zlib loads this library on arm64, 3.14+
148+
"msvcrt.dll", // zlib loads this library
149+
];
145150
const PE_ALLOWED_LIBRARIES_ARM64: &[&str] = &["msvcrt.dll", "zlib1.dll"];
146151

147152
static GLIBC_MAX_VERSION_BY_TRIPLE: Lazy<HashMap<&'static str, version_compare::Version<'static>>> =

0 commit comments

Comments
 (0)