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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resubmitting PR per @Scottcjn review:
Security Hardening
python3 -cfallback with safe positional arguments (sys.argv[1],sys.argv[2],sys.argv[3]), eliminating potential arbitrary code injection via--wallet.echo -nwithprintf '%s-%s-%s'for clean POSIX execution.Fixes & Compatibility
MINER_CRYPTO_URLin Darwin branch and uses portableshasum -a 256/python3 sys.argvfallbacks whensha256sumis missing.tests/test_macos_installer_compatibility.py100%.Closes #16251
Bounty claim: Scottcjn/rustchain-bounties#16251 (10 RTC)
Wallet: RTCfe13452d122263caf633ab1876bd9631133b68b1