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 information


  1. Nsa Hack Tools
  2. Hacking Tools Name
  3. Hacking Tools Download
  4. Hacker Tools For Ios
  5. Hack Tools Github
  6. Hacking Tools Name
  7. Pentest Tools Apk
  8. Best Hacking Tools 2020
  9. Hack Rom Tools
  10. Hacking Tools Usb
  11. Hack Tools For Ubuntu
  12. Hacker Tools Linux
  13. Hacker Tools 2020
  14. Pentest Box Tools Download
  15. Pentest Tools
  16. Pentest Tools Apk
  17. Tools 4 Hack
  18. Pentest Tools Alternative
  19. Nsa Hack Tools
  20. Pentest Reporting Tools
  21. Termux Hacking Tools 2019
  22. Hack Tools Github
  23. Hack And Tools
  24. Pentest Tools Android
  25. Hacking Tools Free Download
  26. World No 1 Hacker Software
  27. Pentest Automation Tools
  28. Pentest Tools Github
  29. Hacking Tools Name
  30. Beginner Hacker Tools
  31. Hacking Tools Hardware
  32. Hack Tools For Windows
  33. Kik Hack Tools
  34. Pentest Tools Review
  35. Pentest Tools For Android
  36. Hacker Tools List
  37. Hack Tools 2019
  38. Hacker Tools Free Download
  39. What Is Hacking Tools
  40. What Is Hacking Tools
  41. Hacking Tools Free Download
  42. Top Pentest Tools
  43. Pentest Tools Port Scanner
  44. What Are Hacking Tools
  45. New Hack Tools
  46. Hacker Tools 2019
  47. Pentest Tools For Mac
  48. Easy Hack Tools
  49. Best Hacking Tools 2020
  50. Hacking Tools For Kali Linux
  51. Hacker Security Tools
  52. Best Hacking Tools 2020
  53. Hacker Tools Free
  54. Pentest Tools Port Scanner
  55. Hacker Tools List
  56. How To Hack
  57. Pentest Tools Nmap
  58. Pentest Tools Kali Linux
  59. Hack Tools For Ubuntu
  60. Hacking Tools Download
  61. Pentest Tools Alternative
  62. Nsa Hack Tools Download
  63. Pentest Box Tools Download
  64. Hack Tool Apk
  65. Hacking Tools For Pc
  66. Hack Website Online Tool
  67. Hacker Tools Github
  68. World No 1 Hacker Software
  69. Hacker Tools List
  70. What Are Hacking Tools
  71. Hacker Tools For Pc
  72. Pentest Tools Open Source
  73. Best Hacking Tools 2020
  74. Hacking Tools For Windows Free Download
  75. Kik Hack Tools
  76. Top Pentest Tools
  77. What Is Hacking Tools
  78. Pentest Tools Windows
  79. Hacker Tools Apk
  80. Hacker Tool Kit

Posting Komentar

 
Top