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 posts
- Hak5 Tools
- Hacker Tools For Mac
- Computer Hacker
- Hack Tools Pc
- Hacker Tools Free Download
- Pentest Tools Github
- Underground Hacker Sites
- Hacker Tools Software
- New Hack Tools
- Pentest Tools Website
- Hack Tools For Pc
- Pentest Tools Port Scanner
- Hacking Tools Pc
- Pentest Tools Free
- Pentest Tools Download
- Easy Hack Tools
- Hack And Tools
- Pentest Tools Open Source
- Hacker Tools Free Download
- Hacker Tool Kit
- Hacking Tools Online
- Best Hacking Tools 2020
- Hacking Tools For Windows
- Nsa Hack Tools Download
- Hacking Tools And Software
- Pentest Tools Free
- Hack And Tools
- Hackers Toolbox
- Pentest Tools Apk
- Pentest Tools Android
- Hack Tools 2019
- Hacking Tools Windows 10
- Bluetooth Hacking Tools Kali
- Hak5 Tools
- Hack Tools Github
- Hacker Tools Online
- Hacking Tools 2019
- Hacker Tools Linux
- Hacker Tools Hardware
- Pentest Automation Tools
- Hacking Tools And Software
- Hacker Hardware Tools
- Hackers Toolbox
- Wifi Hacker Tools For Windows
- Black Hat Hacker Tools
- Pentest Tools Tcp Port Scanner
- Hack Tools
- Pentest Tools For Android
- New Hacker Tools
- Hacker Tools Windows
- Hacker Tools Windows
- Hack Tool Apk No Root
- Hacking Tools 2020
- Tools Used For Hacking
- Android Hack Tools Github
- Hack Tools For Mac
- Kik Hack Tools
- Best Pentesting Tools 2018
- Hack Tools For Windows
- Hacking Tools Mac
- Hacking Tools Windows 10
- Hacking Tools 2020
- Hacker Security Tools
- Hacking App
- Hacking Tools For Games
- Hacking Tools For Windows Free Download
- Pentest Tools Free
- Pentest Tools List
- Free Pentest Tools For Windows
- Hack Tools For Mac
- Hacking App
- Pentest Tools Online
- Computer Hacker
- Hacker Search Tools
- Hack Tools For Ubuntu
- Hacking Tools For Windows 7
- Hacking Tools Online
- Pentest Tools For Ubuntu
- Hacker Tools Windows
No comments:
Post a Comment