Skip to content

clang++ does not obfuscate first 8 bytes of string #2

Description

@sbredahl

Hi,

On my macOS 10.15 (Apple clang version 11.0.0) I did this using example/main.cpp:

$ clang++ main.cpp -O3 -std=c++14
$ grep "snowapril" a.out
$ grep "snowapri" a.out
Binary file a.out matches 

So it does not scramble the first 8 bytes of the string. Same thing with Linux Clang++ (clang version 6.0.0) on Ubuntu. However g++ on Linux works just fine!

Maybe not something you can do anything about, but something to be aware of!

/Sune

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions