C++ Std::Condition_Variable Null Pointer Derreference
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
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
- Pentest Tools Tcp Port Scanner
- Computer Hacker
- Pentest Tools Github
- Hacking Tools Mac
- Hacking Tools For Games
- Computer Hacker
- New Hacker Tools
- Usb Pentest Tools
- Hacking Tools For Mac
- Pentest Tools Download
- Hack Tools Pc
- Hacking Apps
- Hacker Tools 2019
- Hack Apps
- Pentest Tools Linux
- Hacking Tools For Pc
- How To Install Pentest Tools In Ubuntu
- Hacking Tools Software
- Nsa Hacker Tools
- What Are Hacking Tools
- Hacking Tools Windows
- Hacking Tools Software
- Hack Tools For Ubuntu
- Hacking Tools For Windows 7
- Pentest Tools Url Fuzzer
- Hack Tools Online
- Hacking Tools 2020
- Hacking Tools For Windows Free Download
- Pentest Tools List
- Pentest Tools List
- Hacker Security Tools
- Pentest Tools Port Scanner
- Best Hacking Tools 2020
- Pentest Tools For Windows
- Ethical Hacker Tools
- Hacker Tools Linux
- Hacker Tools Mac
- Pentest Tools For Windows
- Pentest Tools Online
- Hacker Tools Mac
- Hack Tools For Mac
- Pentest Tools For Android
- Hacker Tools Github
- Hacker Tools Windows
- Hacking Tools Usb
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Nmap
- Hacker Tools For Mac
- Beginner Hacker Tools
- Hack Tools For Mac
- Pentest Tools Find Subdomains
- Pentest Tools Android
- Hacking Tools For Mac
- Hacking Tools For Pc
- Blackhat Hacker Tools
- Termux Hacking Tools 2019
- Blackhat Hacker Tools
- Pentest Tools Url Fuzzer
- Hack Tools For Windows
- Pentest Tools Alternative
- Hack Tools Download
- Hacking Tools For Mac
- Hacker Tools
- Hackrf Tools
- Hacker Tools For Windows
- Hacker Tools For Pc
- Hacker Tools Online
- Hacker Hardware Tools
- Hacker Search Tools
- Hacker Tools 2020
- Pentest Tools Review
- Pentest Tools Tcp Port Scanner
- Hacker Security Tools
- Blackhat Hacker Tools
- Pentest Tools For Ubuntu
- Hack Tools Github
- Hack Tools For Pc
- Hacker Tools List
- Hack Tools For Games
- Hacking Tools Pc
- Pentest Tools Free
- Pentest Tools Website
- Pentest Recon Tools
- Blackhat Hacker Tools
- Hacking Tools Download
- Hacking Tools For Windows
- New Hacker Tools
- Pentest Tools Port Scanner
0 Comments:
Publicar un comentario
<< Home