Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

garble 0.10.0 #132902

Closed
wants to merge 1 commit into from
Closed

Conversation

chenrui333
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
This release drops support for Go 1.19, continues support for Go 1.20, and adds initial support for the upcoming Go 1.21.

@lu4p rewrote the code to detect whether reflect is used on each Go type, which is used to decide which Go types should not be obfuscated to prevent breakage. The old code analyzed syntax trees with type information, which is cheap but clumsy. The new code uses SSA, which adds a bit of CPU cost to builds, but allows for a more powerful analysis that is less likely to break on edge cases. While this change does slow down builds slightly, we will start using SSA for more features in the near term, such as control flow obfuscation. See #732.

@pagran improved the patching of Go's linker to also obfuscate funcInfo.entryoff, making it harder to relate a function's metadata with its body in the binary. See #641.

@mvdan rewrote garble's caching to be more robust, avoiding errors such as "cannot load garble export file". The new caching system is entirely separate from Go's GOCACHE, being placed in GARBLE_CACHE, which defaults to a directory such as ~/.cache/garble. See #708.

@DominicBreuker taught -literals to support obfuscating large string literals by using the "simple" obfuscator on them, as it runs in linear time. See #720.

@mvdan added support for garble run, the obfuscated version of go run, to quickly test that a main program still works when obfuscated. See #661.

A number of bugfixes are also included:

  • Ensure that sync/atomic types are still aligned by the compiler - #686
  • Print the chosen random seed when using -seed=random - #696
  • Avoid errors in git apply if the system language isn't English - #698
  • Avoid a panic when importing a missing package - #694
  • Suggest a command when asking the user to rebuild garble - #739

@github-actions github-actions bot added go Go use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Jun 5, 2023
@chenrui333
Copy link
Member Author

  ==> /home/linuxbrew/.linuxbrew/Cellar/garble/0.10.0/bin/garble -literals -tiny build /tmp/garble-test-20230605-5901-1v6dw1p/hello.go
  # command-line-arguments
  cannot get modified linker: exit status 1:
  git: This shim is internal and must be run via brew.
  
  exit status 1
  Error: garble: failed

@chenrui333 chenrui333 added test failure CI fails while running the test-do block CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. labels Jun 5, 2023
Signed-off-by: Rui Chen <[email protected]>
@chenrui333 chenrui333 force-pushed the bump-garble-0.10.0 branch from 9c88a91 to d8a3f90 Compare June 7, 2023 03:17
@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep this pull request open, add a help wanted or in progress label.

@github-actions github-actions bot added the stale No recent activity label Jun 10, 2023
@chenrui333 chenrui333 removed the stale No recent activity label Jun 10, 2023
@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep this pull request open, add a help wanted or in progress label.

@github-actions github-actions bot added the stale No recent activity label Jun 13, 2023
@github-actions github-actions bot closed this Jun 15, 2023
@stefanb stefanb mentioned this pull request Jun 25, 2023
89 tasks
@github-actions github-actions bot added the outdated PR was locked due to age label Jul 15, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2023
@chenrui333 chenrui333 deleted the bump-garble-0.10.0 branch January 22, 2024 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. go Go use is a significant feature of the PR or issue outdated PR was locked due to age stale No recent activity test failure CI fails while running the test-do block
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant