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 Website
- Black Hat Hacker Tools
- Ethical Hacker Tools
- Pentest Tools Review
- Tools Used For Hacking
- Android Hack Tools Github
- Hacker Tools For Ios
- Beginner Hacker Tools
- Hackers Toolbox
- Hacking Tools Free Download
- Hacking Tools Pc
- Hack Tools For Games
- Pentest Tools Url Fuzzer
- Hacker
- Pentest Tools Port Scanner
- Hack Tools For Games
- Hack Tools Pc
- How To Hack
- Beginner Hacker Tools
- Hack Tools Pc
- Pentest Tools Website
- Best Hacking Tools 2019
- Hack Rom Tools
- Pentest Tools Framework
- Hacks And Tools
- Best Hacking Tools 2019
- Bluetooth Hacking Tools Kali
- Nsa Hacker Tools
- Pentest Recon Tools
- Hack Tools
- Pentest Tools Tcp Port Scanner
- Hacking App
- What Is Hacking Tools
- Pentest Tools For Mac
- Bluetooth Hacking Tools Kali
- Pentest Tools Alternative
- Blackhat Hacker Tools
- Hacker
- Underground Hacker Sites
- Hack And Tools
- How To Make Hacking Tools
- Hack Tools For Windows
- Pentest Tools Bluekeep
- Pentest Tools Download
- Pentest Tools Url Fuzzer
- Pentest Tools Subdomain
- Nsa Hack Tools
- Hack Tools
- Hacking Tools For Kali Linux
- Tools For Hacker
- Pentest Tools Linux
- Best Hacking Tools 2020
- Hacker
- Hack Rom Tools
- Hacker Tool Kit
- Pentest Tools Kali Linux
- Hacker Tool Kit
- What Are Hacking Tools
- Hacker Tools Linux
- Hack And Tools
- Hacker Tools Free
- Pentest Tools Website
- Pentest Tools For Mac
- Best Hacking Tools 2020
- Pentest Tools Tcp Port Scanner
- Pentest Reporting Tools
- What Are Hacking Tools
- Nsa Hack Tools Download
- Hacker Tools Free
- Game Hacking
- Hak5 Tools
- Hacking Tools Software
- Pentest Tools Free
- Hacker Tools 2019
- Hacking Tools Kit
- Best Hacking Tools 2020
- Pentest Tools Subdomain
- Bluetooth Hacking Tools Kali
- Hacking Tools For Windows
- Hack Tools 2019
- Hacking Tools For Windows 7
- Hacking Tools For Windows Free Download
- Hackers Toolbox
- Underground Hacker Sites
- Hak5 Tools
- Kik Hack Tools
- Best Hacking Tools 2019
- Hacking Tools For Games
- Pentest Tools Review
- Hack And Tools
- Hacker Tools Software
- Best Pentesting Tools 2018
- What Are Hacking Tools
- Hack Tools
- Pentest Tools Website
- Hacking Tools Hardware
- Hackrf Tools
- Tools For Hacker
- Hack Tools Download
- Usb Pentest Tools
- How To Make Hacking Tools
- Hacker Search Tools
0 条评论:
发表评论
订阅 博文评论 [Atom]
<< 主页