This story is about a bug generated by g++ and clang compilers (at least)
The condition_variables is a feature on the standard library of c++ (libstdc++), when its compiled statically a weird asm code is generated.
Any example on the link below will crash if its compiled statically:
https://en.cppreference.com/w/cpp/thread/condition_variable
In this case the condition_variable.wait() crashed, but this happens with other methods, a simple way to trigger it:
If this program is compiled dynamically the crash doesn't occur:
Looking the dissasembly there is a surprise created by the compiler:
Compilers:
g++ 9.2.1+20200130-2
clang++ v9
Both compilers are generating the "call 0x00"
If we check this call in a dynamic compiled:
The implementation of condition_variable in github:
https://github.com/gcc-mirror/gcc/blob/b7c9bd36eaacac42631b882dc67a6f0db94de21c/libstdc%2B%2B-v3/include/std/condition_variable
The compilers can't copile well this code in static, and same happens on other condition_variable methods.
I would say the _lock is being assembled improperly in static, is not exacly a null pointer derreference but the effects are the same, executing code at address 0x00 which on linux is a crash on most of cases.
Related articles
- Physical Pentest Tools
- Pentest Tools Linux
- Pentest Tools Kali Linux
- Hack Apps
- Blackhat Hacker Tools
- Pentest Tools
- Hacker Tools Windows
- Pentest Tools Open Source
- Pentest Tools For Mac
- Hacker Tools Hardware
- Hacking Tools Online
- Hack Tools For Windows
- Github Hacking Tools
- Ethical Hacker Tools
- Hack Tools For Games
- Hacking Tools Download
- Hacks And Tools
- Hack Tools
- Hack Tools Online
- Hacker Tools List
- Hacker Tools Free
- Pentest Tools For Mac
- Pentest Tools Url Fuzzer
- Hak5 Tools
- Hacking Tools
- Hack Tools
- Hack Tools For Pc
- Pentest Tools Free
- Hacking Tools And Software
- Hacker Tools Linux
- Hacking Tools Download
- Hack Rom Tools
- Blackhat Hacker Tools
- Hacking Tools For Games
- Hacks And Tools
- Hacking Tools Kit
- Hacker Tools For Mac
- Hacker Tools For Windows
- Pentest Reporting Tools
- What Is Hacking Tools
- Wifi Hacker Tools For Windows
- Pentest Automation Tools
- Pentest Tools Open Source
- Hacker Tools For Ios
- Hack Tools
- Hack Tools For Ubuntu
- Pentest Tools For Mac
- Hack Tools For Games
- Pentest Tools For Android
- Hacking Tools For Windows Free Download
- Pentest Recon Tools
- Hacking Tools Hardware
- New Hack Tools
- Pentest Tools Linux
- Free Pentest Tools For Windows
- Hackrf Tools
- Kik Hack Tools
- Hacking Tools Kit
- New Hacker Tools
- Install Pentest Tools Ubuntu
- What Is Hacking Tools
- Hacking Tools For Windows Free Download
- Pentest Tools Review
- Hack Rom Tools
- Game Hacking
0 comments:
Post a Comment