You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install.sh and install.ps1 install the binary without checking the published .sha256 #3003
Every release publishes a .sha256 beside each compiler binary, and the README points to them ("Binaries, checksums and provenance are on the releases page"). The installers don't use them: scripts/install.sh downloads with curl -fsSL "$url" -o "$tmp_bin" and moves it into place (lines 40-42), and scripts/install.ps1 does the same with Invoke-WebRequest and Move-Item (lines 38-39); install.cmd runs install.ps1. Both then run the binary (with version), so a truncated or altered download is installed and executed as it is.
Proposed: fetch <asset>.sha256 from the same release, compare its first field with the download's SHA-256 before the move, and on a mismatch delete the download and exit non-zero, naming both hashes. That's sha256sum, or shasum -a 256 on macOS, in install.sh, and Get-FileHash -Algorithm SHA256 in install.ps1.
Only the first field can be compared: the release workflow writes shasum -a 256 "out/release/<asset>" (.github/workflows/nightly-release.yml lines 449 and 710), so the file's second field is the CI path, out/release/with-windows-x86_64.exe for instance, and sha256sum -c beside the download wouldn't find the file.
Checked on main 32bf4438 and the v0.16.0.8 assets.
Fixed in #3065 (baff8e4): scripts/install.sh and scripts/install.ps1 fetch <asset>.sha256, compare its first field with the download's SHA-256 (sha256sum or shasum -a 256; Get-FileHash), and on a mismatch remove the download and exit non-zero naming both digests.
Activity
#3024, #2973, #3003, #2888: the survey names what failed, provenance …
#3024, #2973, #3003, #2888: the survey names what failed, provenance …
ehartford commentedon Nov 7, 2026
Fixed in #3065 (baff8e4): scripts/install.sh and scripts/install.ps1 fetch
<asset>.sha256, compare its first field with the download's SHA-256 (sha256sumorshasum -a 256;Get-FileHash), and on a mismatch remove the download and exit non-zero naming both digests.