-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Names inside generated lambdas are not obfuscated #649
Comments
This is an easy fix just need to typecheck after literal obfuscation, this does add some overhead so I don't know if it's worth it. |
Copying my response from #790:
I just realised we have another option, which might be the simplest: have the literal obfuscator generate its code with obfuscated identifiers directly, rather than normal identifiers like |
Right, sometimes the easiest solution is overlooked.... |
What version of Garble and Go are you using?
What environment are you running Garble on?
go env
OutputWhat did you do?
Build "hello world":
Command:
What did you expect to see?
All local variable names inside the generated lambda (for "hello world" string) must be obfuscated
What did you see instead?
data/fullData
not obfuscated:In current version of garble this bug does not affect anything, but it blocks implementation of literals benchmark.
To implement a benchmark, it needs a reference to an external dependency and without renaming inside generated lambda, it will cause error
The text was updated successfully, but these errors were encountered: