Skip to content

Using unsafe in control flow obfuscation #778

@pagran

Description

@pagran

Using unsafe when obfuscating will allow to do some interesting things, such as:

1) Fix lazy map iteration problem (idea from here)
2) Add data obfuscation. For example, automatic prevention of string disclosure via GC. This can be implemented via unsafe.StringData method and force zeroing of string data.

In addition to "unsafe" is unsafe, i see a potential problem in the future with exporting code (#369), because using unsafe can break compatibility between versions of go.

What's your opinion?

@mvdan @lu4p

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions