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 posts
- Hacking Tools Name
- Pentest Tools Subdomain
- Hacker Tools List
- Hacking Tools Download
- Hacker Tools For Windows
- Pentest Tools Online
- Ethical Hacker Tools
- What Is Hacking Tools
- Hacker Tools Online
- Hacker Search Tools
- Pentest Tools Bluekeep
- Hack Tool Apk No Root
- How To Install Pentest Tools In Ubuntu
- Hacking Tools Usb
- Hacker Hardware Tools
- Hacker Tools Windows
- Wifi Hacker Tools For Windows
- Hacker Tools Free Download
- Hacking Tools Software
- Hacking Tools And Software
- Hack And Tools
- Hack Tools For Windows
- Hackers Toolbox
- Hacker Security Tools
- Hack Tools
- Best Hacking Tools 2020
- Hack Tools 2019
- Pentest Tools Github
- Hacker Tools
- Hacker Tools Linux
- Hacking Apps
- Hack Tools For Pc
- Hacking Tools
- Hacker Tools Apk
- Hacking Tools For Kali Linux
- Hacking Tools For Mac
- Hacker Tools For Ios
- Tools 4 Hack
- Android Hack Tools Github
- Ethical Hacker Tools
- Pentest Tools Review
- What Are Hacking Tools
- Hacker Tools Github
- Hack Apps
- Hacker Tools Mac
- Physical Pentest Tools
- Pentest Tools Github
- Hacker Tools Online
- Hacking Tools Mac
- Hacks And Tools
- Underground Hacker Sites
- Pentest Tools Github
- Pentest Tools Bluekeep
- Hacker Tools Linux
- How To Make Hacking Tools
- Physical Pentest Tools
- How To Make Hacking Tools
- Hack Tools Online
- Pentest Tools Alternative
- Pentest Tools For Mac
- Hack Tools Online
- Pentest Tools For Mac
- Ethical Hacker Tools
- Easy Hack Tools
- Hackrf Tools
- Pentest Box Tools Download
- Hack Tools 2019
- Hacking Tools Hardware
- Pentest Tools Port Scanner
- Pentest Automation Tools
- Hacker Tools Apk Download
- Best Hacking Tools 2020
- Hack Tools Mac
- Hacker
- Best Pentesting Tools 2018
- Pentest Tools Open Source
- Pentest Tools Windows
- Usb Pentest Tools
- Hack Tools Download
- Best Pentesting Tools 2018
- Pentest Tools Apk
- Hacks And Tools
- Hacking Tools For Windows 7
- Hack Website Online Tool
- Pentest Tools Website Vulnerability
- Hack Tools For Games
- Hacking Tools Github
- Hack Rom Tools
- Hak5 Tools
- Hacking Tools For Windows Free Download
- Hacker Hardware Tools
- Pentest Tools List
- Pentest Tools Download
- Hack Tools 2019
- Hack Tools For Windows
- Top Pentest Tools
- Pentest Tools Github
No comments:
Post a Comment