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 word
- Hackers Toolbox
- Hacker
- Hacking Tools Pc
- Pentest Tools List
- Hackers Toolbox
- Hacking Tools Download
- Hacker Tools For Pc
- Hacker Tool Kit
- Hacker Tools Software
- Hackers Toolbox
- Hack App
- Ethical Hacker Tools
- Hacking Tools Mac
- What Are Hacking Tools
- Hacking Tools For Kali Linux
- Hack Tools Mac
- Hacker Tools Hardware
- Hacker Tools Free Download
- Hack Tools 2019
- Hak5 Tools
- Hacking Tools Kit
- Kik Hack Tools
- Physical Pentest Tools
- Hacks And Tools
- Hacker Tools Online
- Nsa Hack Tools Download
- Hack Rom Tools
- Pentest Tools Free
- Pentest Tools Online
- Hack Tools For Pc
- Pentest Tools Github
- Tools For Hacker
- Github Hacking Tools
- Usb Pentest Tools
- Pentest Tools For Android
- How To Hack
- How To Install Pentest Tools In Ubuntu
- Game Hacking
- Hacking Tools 2020
- Hacker Tools For Windows
- Game Hacking
- Hack Tools For Pc
- Hacking App
- Hacking Tools For Beginners
- Hacker Tools Hardware
- How To Hack
- Wifi Hacker Tools For Windows
- Tools For Hacker
- Pentest Tools Linux
- Hacking Tools For Pc
- Pentest Tools Review
- How To Install Pentest Tools In Ubuntu
- Pentest Automation Tools
- Termux Hacking Tools 2019
- Pentest Tools Tcp Port Scanner
- Hacking Tools Online
- Hack Rom Tools
- Pentest Tools Free
- Pentest Tools Linux
- World No 1 Hacker Software
No comments:
Post a Comment