Skip to content

Commit d3a001d

Browse files
authored
use old xz mirror, fix CVE-2024-3094 (#399)
* use old xz mirror, fix CVE-2024-3094 * add test
1 parent d445668 commit d3a001d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

config/source.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,8 @@
646646
}
647647
},
648648
"xz": {
649-
"type": "ghrel",
650-
"repo": "tukaani-project/xz",
651-
"match": "xz-.+\\.tar\\.gz",
649+
"type": "url",
650+
"url": "https://fossies.org/linux/misc/xz-5.4.6.tar.xz",
652651
"license": {
653652
"type": "file",
654653
"path": "COPYING"

src/globals/test-extensions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313

1414
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
1515
$extensions = match (PHP_OS_FAMILY) {
16-
'Linux', 'Darwin' => 'intl,pdo_sqlite,sqlite3,curl,openssl,tokenizer,bcmath,bz2,calendar,dba,ftp,iconv,mysqli,mbstring,mbregex,xml,simplexml,ctype,dom,pdo,filter,session,zlib,fileinfo,pdo_mysql,posix,sockets,shmop,sodium,sysvmsg,sysvsem,sysvshm,gd,zip,gmp,redis,xmlwriter,phar,exif,xmlreader,readline,pcntl,soap,imagick,ffi,password-argon2,pgsql,pdo_pgsql,imap,ldap,xsl',
16+
'Linux', 'Darwin' => 'xml,imagick',
1717
'Windows' => 'mbstring,pdo_sqlite,mbregex,ffi',
1818
};
1919

2020
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
2121
$with_libs = match (PHP_OS_FAMILY) {
22-
'Linux', 'Darwin' => 'nghttp2',
22+
'Linux', 'Darwin' => 'xz',
2323
'Windows' => '',
2424
};
2525

2626
// Please change your test base combination. We recommend testing with `common`.
2727
// You can use `common`, `bulk`, `minimal` or `none`.
2828
// note: combination is only available for *nix platform. Windows must use `none` combination
2929
$base_combination = match (PHP_OS_FAMILY) {
30-
'Linux', 'Darwin' => 'none',
30+
'Linux', 'Darwin' => 'minimal',
3131
'Windows' => 'none',
3232
};
3333

0 commit comments

Comments
 (0)