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.
More info
- Pentest Tools
- Pentest Tools Kali Linux
- Nsa Hacker Tools
- Hacker Security Tools
- Hack Tools Download
- Hackers Toolbox
- How To Install Pentest Tools In Ubuntu
- Hack Tools Mac
- Hacking Tools Pc
- Hacker Tools 2019
- Hack Tools
- Pentest Tools Subdomain
- Hacking Tools For Pc
- Hacker Tools Free
- Hacking Tools Pc
- Hacker Tools For Windows
- Hacking Tools
- Hacker Search Tools
- Bluetooth Hacking Tools Kali
- Hacker Tools
- Hacking Tools Github
- Hacking Tools Hardware
- Pentest Tools Windows
- Hacker Tools Online
- Hacking Tools Kit
- Hacker Security Tools
- Free Pentest Tools For Windows
- Nsa Hacker Tools
- Pentest Tools Url Fuzzer
- Black Hat Hacker Tools
- Hack Rom Tools
- Underground Hacker Sites
- Hacker Tools List
- Hacking Tools Software
- Hacker Tools Free
- Hacker Tools Free Download
- Hack Tool Apk No Root
- Hack Tools For Windows
- Hacking Tools And Software
- Hacking Tools Mac
- Hack And Tools
- Computer Hacker
- Hacking Tools Kit
- How To Install Pentest Tools In Ubuntu
- Underground Hacker Sites
- Pentest Automation Tools
- Hacker Tools Free
- Pentest Tools Subdomain
- Easy Hack Tools
- Hacks And Tools
- Hacking Tools For Beginners
- Nsa Hack Tools
- Bluetooth Hacking Tools Kali
- Hacking Tools Download
- Hacker Tools 2019
- Pentest Tools For Ubuntu
- Best Hacking Tools 2020
- Ethical Hacker Tools
- Hacking Tools 2019
- What Are Hacking Tools
- Hack Tool Apk
- Hacking Tools Windows 10
- Hacker Tools List
- Pentest Tools Framework
- Hacker Tools For Windows
- Hacking Tools Software
- Pentest Tools Website Vulnerability
- Hacker Techniques Tools And Incident Handling
- Pentest Tools For Windows
- Hacking Tools For Windows Free Download
- Growth Hacker Tools
- Best Hacking Tools 2019
- Hacking Tools Windows
- Pentest Tools Alternative
- Hacking Tools Mac
- Hacking Tools And Software
- Hack Tools Github
- Pentest Tools Kali Linux
- Hacker Tools For Mac
- Hacking Tools Download
- Hacker Tools Software
- Pentest Tools Open Source
- Pentest Tools Android
- Physical Pentest Tools
- Tools Used For Hacking
- Hacker Tools Online
- Hack Tool Apk
- Hacking Tools 2019
- Underground Hacker Sites
- Android Hack Tools Github
- Hacking Tools Github
- Top Pentest Tools
- Hack Tools
- Hacker Tools Apk
Tiada ulasan:
Catat Ulasan