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.
Read more
- Hacking Tools Mac
- Tools For Hacker
- Pentest Tools Android
- Pentest Tools Open Source
- Hacking Tools For Games
- Hacking Tools Online
- Pentest Tools Website Vulnerability
- Hacking Tools For Pc
- Underground Hacker Sites
- Pentest Tools Github
- Hacking Tools For Windows Free Download
- Hack Website Online Tool
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Url Fuzzer
- Hacker Tool Kit
- Hacker Hardware Tools
- New Hacker Tools
- Hacking Tools Hardware
- Hacker Tools Linux
- Hacking Tools For Kali Linux
- Hacker Tools Software
- Hacker Tools Online
- Wifi Hacker Tools For Windows
- Hacking Tools For Windows Free Download
- Best Pentesting Tools 2018
- Best Hacking Tools 2019
- Hacker Tools For Windows
- Hacker Tools
- Hacker Tools For Mac
- Hacking Tools For Beginners
- Wifi Hacker Tools For Windows
- Hack Tools For Games
- Nsa Hack Tools
- How To Hack
- Hacking Tools Pc
- Hack Tools Download
- Best Hacking Tools 2020
- Termux Hacking Tools 2019
- Pentest Tools Linux
- Pentest Box Tools Download
- New Hack Tools
- Hacking Tools Pc
- Wifi Hacker Tools For Windows
- How To Install Pentest Tools In Ubuntu
- Wifi Hacker Tools For Windows
- Hacker Tools For Mac
- Hacking Tools For Windows Free Download
- Pentest Tools Url Fuzzer
- Hackrf Tools
- What Are Hacking Tools
- Hacking App
- How To Make Hacking Tools
- Hacker Tools Mac
- Pentest Recon Tools
- Hak5 Tools
- Hacking Tools Hardware
- Pentest Tools Alternative
- Hacking Apps
- Best Hacking Tools 2019
- Pentest Tools Open Source
- Hacker Tools For Ios
- Hacker
- How To Hack
- Hack Tools For Mac
- Hacker Tools Mac
- Pentest Tools Free
- Pentest Reporting Tools
- Hacking Tools For Windows
- Hacker Tools Free Download
- Top Pentest Tools
- Hacking Tools Free Download
- What Is Hacking Tools
- Hacker Tools Apk Download
- Pentest Tools Url Fuzzer
- Beginner Hacker Tools
- Pentest Reporting Tools
- Beginner Hacker Tools
- Github Hacking Tools
- Pentest Tools Alternative
- World No 1 Hacker Software
- Nsa Hack Tools
- Pentest Tools Find Subdomains
- Pentest Tools For Android
- Pentest Tools Subdomain
- Black Hat Hacker Tools
- Hacker Tools 2019
- Blackhat Hacker Tools
- Pentest Tools Port Scanner
- Hack Tools Online
- Hacker Tools Online
- What Is Hacking Tools
- Hacker Tools Mac
No comments:
Post a Comment