-
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid breaking github.com/davecgh/go-spew
It assumes that reflect.Value has a field named "flag", which wasn't the case with obfuscated builds as we obfuscated it. We already treated the reflect package as special, for instance when not obfuscating Method or MethodByName. In a similar fashion, mark reflect's rtype and Value types to not be obfuscated alongside their field names. Note that rtype is the implementation behind the reflect.Type interface. This fix is fairly manual and repetitive. transformCompile, transformLinkname, and transformAsm should all use the same mechanism to tell if names should be obfuscated. However, they do not do that right now, and that refactor feels too risky for a bugfix release. We add more TODOs instead. We're not adding go-spew to scripts/check-third-party.sh since the project is largely abandoned. It's not even a Go module yet. The only broken bit from it is what we've added to our tests. Fixes #676.
- Loading branch information
Showing
3 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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