Skip to content

fix(installer): resolve macOS crashes, missing variables, and safe sys.argv sha256 fallback in install.sh (closes #16251) - #8185

Open
lequangsang01 wants to merge 2 commits into
Scottcjn:mainfrom
lequangsang01:fix/bounty-16251-macos-installer-fix
Open

fix(installer): resolve macOS crashes, missing variables, and safe sys.argv sha256 fallback in install.sh (closes #16251)#8185
lequangsang01 wants to merge 2 commits into
Scottcjn:mainfrom
lequangsang01:fix/bounty-16251-macos-installer-fix

Conversation

@lequangsang01

Copy link
Copy Markdown
Contributor

Resubmitting PR per @Scottcjn review:

Security Hardening

  • Replaced inline string interpolation in python3 -c fallback with safe positional arguments (sys.argv[1], sys.argv[2], sys.argv[3]), eliminating potential arbitrary code injection via --wallet.
  • Replaced echo -n with printf '%s-%s-%s' for clean POSIX execution.

Fixes & Compatibility

  1. Darwin/macOS Support: Correctly defines MINER_CRYPTO_URL in Darwin branch and uses portable shasum -a 256 / python3 sys.argv fallbacks when sha256sum is missing.
  2. Test Suite: Passes tests/test_macos_installer_compatibility.py 100%.

Closes #16251
Bounty claim: Scottcjn/rustchain-bounties#16251 (10 RTC)

Wallet: RTCfe13452d122263caf633ab1876bd9631133b68b1

@github-actions github-actions Bot added BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) tests Test suite changes size/S PR: 11-50 lines labels Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) size/S PR: 11-50 lines tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant