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.

Continue reading
  1. Hacks And Tools
  2. Hacking Tools Download
  3. Hacker Hardware Tools
  4. Hacking Tools Usb
  5. Kik Hack Tools
  6. Pentest Tools Tcp Port Scanner
  7. Pentest Tools Url Fuzzer
  8. Pentest Tools List
  9. Free Pentest Tools For Windows
  10. Wifi Hacker Tools For Windows
  11. Bluetooth Hacking Tools Kali
  12. Pentest Tools Online
  13. Easy Hack Tools
  14. How To Make Hacking Tools
  15. Top Pentest Tools
  16. Pentest Tools Online
  17. Hacker Tools For Pc
  18. Hack Apps
  19. Pentest Tools Online
  20. Ethical Hacker Tools
  21. Hack Website Online Tool
  22. Underground Hacker Sites
  23. Easy Hack Tools
  24. What Is Hacking Tools
  25. Pentest Tools For Windows
  26. New Hack Tools
  27. Hacks And Tools
  28. Hacker Hardware Tools
  29. Beginner Hacker Tools
  30. Hacking Tools Name
  31. Pentest Tools Kali Linux
  32. Hacker Tools Online
  33. Hacking Tools For Mac
  34. New Hack Tools
  35. Hacking Tools 2019
  36. Pentest Tools Subdomain
  37. Hacker Tools Free
  38. Hacker Tools Free
  39. Pentest Tools Alternative
  40. Pentest Tools Framework
  41. Pentest Tools Tcp Port Scanner
  42. Hacker Tools Software
  43. Tools For Hacker
  44. Underground Hacker Sites
  45. Hacking Tools Hardware
  46. Hacker Tools
  47. Hacker Techniques Tools And Incident Handling
  48. Easy Hack Tools
  49. Pentest Tools For Android
  50. Hacking Tools Hardware
  51. Hack Website Online Tool
  52. Hack Tool Apk
  53. Hacking Tools For Beginners
  54. Hack App
  55. Hacking Tools Hardware
  56. Hacker Tools Windows
  57. Pentest Tools For Windows
  58. Pentest Tools Review
  59. Hacker Tools Online
  60. Hacker Tools For Windows
  61. Hack Tools Online
  62. Android Hack Tools Github
  63. Nsa Hacker Tools
  64. Best Hacking Tools 2020
  65. Hacker Tools Apk
  66. Pentest Tools Kali Linux
  67. Hacking Tools Windows
  68. How To Install Pentest Tools In Ubuntu
  69. Hacking Tools Usb
  70. Pentest Tools Url Fuzzer
  71. Hacking Tools Usb
  72. Pentest Tools Online
  73. Pentest Tools List
  74. Hack Tools Download
  75. Hacker Tool Kit
  76. Nsa Hack Tools Download
  77. What Is Hacking Tools
  78. Hack Tools Online
  79. Hacker Tool Kit
  80. Pentest Tools Subdomain
  81. Computer Hacker
  82. Pentest Tools List
  83. Pentest Tools Kali Linux
  84. Hacker Tools Free
  85. Pentest Reporting Tools
  86. Hacking Tools For Windows Free Download
  87. Easy Hack Tools
  88. Pentest Tools Alternative
  89. Hacking Tools Free Download
  90. Hack Apps
  91. Hack Tools Online
  92. Computer Hacker
  93. Pentest Tools Port Scanner
  94. Hacking Tools For Windows 7
  95. Hack Tools For Pc
  96. New Hacker Tools
  97. Hack Tools For Ubuntu
  98. Pentest Tools Bluekeep
  99. Hacker
  100. Top Pentest Tools
  101. What Are Hacking Tools
  102. Hack Tools Github
  103. Hacking Tools Usb
  104. Pentest Tools Framework
  105. Pentest Tools Kali Linux
  106. Pentest Tools Website Vulnerability
  107. Hacking Apps
  108. Pentest Tools
  109. Hacking Apps
  110. Hacker Tools For Pc
  111. Pentest Tools Linux
  112. Growth Hacker Tools
  113. Hacker Techniques Tools And Incident Handling
  114. Pentest Tools For Windows
  115. Black Hat Hacker Tools
  116. Hack Rom Tools
  117. Hack Rom Tools
  118. Pentest Tools Online
  119. Bluetooth Hacking Tools Kali
  120. How To Hack
  121. Pentest Tools Review
  122. Pentest Tools Alternative
  123. Hacker Security Tools
  124. Hackrf Tools
  125. Hacker Tools Mac

Leave a Reply