String-Obfuscator-In-Compile-Time icon indicating copy to clipboard operation
String-Obfuscator-In-Compile-Time copied to clipboard

clang++ does not obfuscate first 8 bytes of string

Open sbredahl opened this issue 4 years ago • 2 comments

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

sbredahl avatar Oct 10 '19 12:10 sbredahl