Skip to content

Commit 56936e1

Browse files
committed
downloads: switch URL for xz; add comment about backdoor
Due to the discovered backdoor in xz, GitHub took the official project offline. The old download link was apparently redirecting to GitHub and is now broken. I'm guessing this will resolve in time. But for now let's work around by using a "self-hosted" version of the archive. Yay for content digest pinning to prove this is exactly the same copy of the source code. Closes #242.
1 parent 1078ebd commit 56936e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonbuild/downloads.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,10 @@
377377
"sha256": "a806f8a92f879dcd0146f3f1153fdffe845f2fc0df9b1a26c19312b7b0a29c86",
378378
"version": "1.5.0",
379379
},
380-
# TODO upgrade to 5.6+.
380+
# IMPORTANT: xz 5.6 has a backdoor. Be extremely cautious before taking any xz
381+
# upgrade since it isn't clear which versions are safe.
381382
"xz": {
382-
"url": "https://tukaani.org/xz/xz-5.2.12.tar.gz",
383+
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240224/xz-5.2.12.tar.gz",
383384
"size": 2190541,
384385
"sha256": "61bda930767dcb170a5328a895ec74cab0f5aac4558cdda561c83559db582a13",
385386
"version": "5.2.12",

0 commit comments

Comments
 (0)