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.
Related articles
- Pentest Tools Open Source
- How To Hack
- Hacking Tools Free Download
- Hack Tools Pc
- Hacking Tools Pc
- Hacker Tools 2019
- Hacker Tools For Pc
- Nsa Hacker Tools
- Hack Tools Mac
- Hacking Tools Github
- Hacker Tools
- Ethical Hacker Tools
- Pentest Tools For Android
- Hack Tool Apk No Root
- Hacker Techniques Tools And Incident Handling
- Hacker Tool Kit
- Hacking Tools 2020
- Hacking Tools For Windows 7
- Best Pentesting Tools 2018
- Hacker Tools Free
- Hacking Tools For Beginners
- Hacks And Tools
- Hacker Tools For Mac
- Hacking Tools For Beginners
- Ethical Hacker Tools
- Pentest Tools Tcp Port Scanner
- Hack Tools
- Hacker Security Tools
- Pentest Tools Website Vulnerability
- Hacking Tools Pc
- Hacking App
- Hack Tools Pc
- Hacking Tools Software
- Hacking Tools 2019
- Growth Hacker Tools
- Physical Pentest Tools
- Hack Tools For Ubuntu
- Tools 4 Hack
- Hacking Tools Free Download
- Hacking Tools Kit
- Tools 4 Hack
- Hack Tool Apk No Root
- How To Make Hacking Tools
- Hacker Tools Apk Download
- Kik Hack Tools
- Hack Tools For Windows
- Hacker Tools Software
- Hacker Search Tools
- Hacker Tools For Ios
- Hacker Tools Apk
- Game Hacking
- Hacking Tools Kit
- Tools 4 Hack
- Game Hacking
- Hak5 Tools
- Nsa Hacker Tools
- Hacker Tools 2019
- Free Pentest Tools For Windows
- Wifi Hacker Tools For Windows
- Hacking Tools Software
- Pentest Tools Alternative
- Hacker Tools Apk
- Hacking Tools For Games
- Hacking App
- Hack Tools Pc
- Hacker Tools Apk Download
- Tools Used For Hacking
- Hacking App
- Hacker Tools Github
- Pentest Tools Tcp Port Scanner
- Bluetooth Hacking Tools Kali
- Pentest Tools Port Scanner
- Hacking Tools Hardware
- Hack Tools Online
- Hacking Tools Software
- Hack Tools
- How To Install Pentest Tools In Ubuntu
- Hack And Tools
- Pentest Tools Free
- Hack Tools Online
- Hacking App
- Hacking Tools For Windows Free Download
- Hacker Tools Free Download
- Pentest Tools Nmap
- Pentest Tools For Windows
- Hacks And Tools
- Computer Hacker
- Hacker Tool Kit
- Hacker Tools 2020
- Hacking Tools Usb
- What Is Hacking Tools
- Hacking Tools 2019
- Hacker Tools Hardware
- Hacker Tools List
- Hacking Tools For Kali Linux
- Pentest Tools Download
- Hak5 Tools
- Pentest Tools Linux
- Hacking Tools Download
- Usb Pentest Tools
- Nsa Hack Tools Download
- Hacking Tools Usb
- Hacker Tools Hardware
- World No 1 Hacker Software
No comments:
Post a Comment