C++ Std::Condition_Variable Null Pointer Derreference
Wednesday, August 26, 2020
0
comments
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 articles
- Hack Rom Tools
- Hacking Tools Name
- Pentest Tools Windows
- Hacker Tools Apk Download
- New Hacker Tools
- Pentest Recon Tools
- Hack Website Online Tool
- Hacking Tools Online
- Hacking Tools Online
- Pentest Tools Alternative
- Hacking Tools For Windows Free Download
- Hacker Tools Free
- Hacking Tools Kit
- What Is Hacking Tools
- Nsa Hacker Tools
- Hak5 Tools
- Physical Pentest Tools
- Hacking Tools And Software
- Top Pentest Tools
- Hacker Tools Apk Download
- Pentest Tools For Android
- Hacking Tools For Mac
- Hacking Apps
- Hacking Tools For Games
- Black Hat Hacker Tools
- Hackrf Tools
- Pentest Tools Android
- Pentest Tools Windows
- Hacking Apps
- Pentest Tools Website
- Hacking Tools For Windows 7
- Pentest Reporting Tools
- Pentest Tools Kali Linux
- Hacker Tools
- Game Hacking
- Hackrf Tools
- Pentest Tools For Android
- Pentest Tools Linux
- Tools Used For Hacking
- Pentest Tools Kali Linux
- Ethical Hacker Tools
- Hacking Tools For Windows Free Download
- Hacker Tools Apk Download
- Nsa Hack Tools
- Hacking Tools And Software
- Hacker
- Pentest Tools Online
- Hacker Tools For Pc
- Pentest Tools For Android
- Hacking Tools 2020
- Hack Tools For Windows
- Hacking Tools Free Download
- Hacking Tools And Software
- World No 1 Hacker Software
- Tools 4 Hack
- Ethical Hacker Tools
- Nsa Hack Tools
- Hacking Tools For Windows 7
- Hack Tools For Mac
- Bluetooth Hacking Tools Kali
- Pentest Tools Framework
- Hacker Tools 2019
- Underground Hacker Sites
- How To Install Pentest Tools In Ubuntu
- Pentest Tools For Windows
- Hacking Tools For Pc
- Pentest Tools Download
- Hack Tools
- How To Make Hacking Tools
- Bluetooth Hacking Tools Kali
- Hack Tool Apk
- Hacking Tools For Mac
- Pentest Box Tools Download
- Hackrf Tools
- Hacking Tools 2019
- Hacking App
- Hack Tools Github
- Kik Hack Tools
- Pentest Tools Online
- Hacking Tools Free Download
- How To Hack
- Hacker Tools Windows
- Pentest Tools Android
- Hak5 Tools
- Pentest Tools Website Vulnerability
- Hacker
- Pentest Tools List
- Hacker
- Tools For Hacker
- Usb Pentest Tools
- Hacking Tools For Kali Linux
- Hacker Tools Software
- Hacker Tools Windows
- Hacker Tools 2019
- Blackhat Hacker Tools
- Hack Tools
- How To Make Hacking Tools
- Hacking Tools For Windows 7
- How To Install Pentest Tools In Ubuntu
- Hacking Tools Software
- Hacking Tools For Mac
- Hackrf Tools
- Hacking Tools Github
- Hacking Tools And Software
- Hacking Tools For Beginners
- Hacking Tools For Beginners
- Hack Apps
- What Is Hacking Tools
- Hacks And Tools
- Hacker Tools Apk
- Termux Hacking Tools 2019
- Hack Tool Apk
- Hacker Security Tools
- Hacking Tools Hardware
- Ethical Hacker Tools
- Hacking Tools And Software
- Pentest Automation Tools
- Github Hacking Tools
- Hacker Tools Free
- Hack Rom Tools
- Nsa Hack Tools
- Pentest Tools Bluekeep
- Easy Hack Tools
- Hacking Tools
- Pentest Tools Bluekeep
- How To Hack
- Pentest Tools Find Subdomains
- Tools For Hacker
- Usb Pentest Tools
- Pentest Tools
- Hacker Tools Github
- Hack Apps
- Pentest Tools Subdomain
- Hacker Search Tools
- Free Pentest Tools For Windows
- Hacker Tools Software
- Hacking Tools For Beginners
- Kik Hack Tools
- Pentest Tools Windows
- Game Hacking
- Hack Rom Tools
- Hacking Tools For Kali Linux
- Best Pentesting Tools 2018
- Best Hacking Tools 2019
- Hacker Search Tools
- Hack App
0 comments:
Post a Comment