C++ Std::Condition_Variable Null Pointer Derreference


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 news
  1. Pentest Tools Port Scanner
  2. Hacking App
  3. Hack Tools For Ubuntu
  4. Hack Tools Mac
  5. Nsa Hack Tools Download
  6. Wifi Hacker Tools For Windows
  7. Easy Hack Tools
  8. Hacker Tools Windows
  9. Pentest Tools Bluekeep
  10. Pentest Tools Open Source
  11. Pentest Tools Framework
  12. Hackrf Tools
  13. Pentest Tools Apk
  14. Pentest Tools Open Source
  15. Pentest Tools Framework
  16. Pentest Recon Tools
  17. Best Hacking Tools 2020
  18. Hacking Tools For Pc
  19. Pentest Tools For Windows
  20. Hacker Tools For Windows
  21. Hacking Tools Pc
  22. Hacking App
  23. Hack Website Online Tool
  24. Hackers Toolbox
  25. Hacker Tools For Ios
  26. Hack Website Online Tool
  27. Hacking Tools Mac
  28. Hacking Tools
  29. Tools Used For Hacking
  30. Pentest Reporting Tools
  31. Hackrf Tools
  32. Hacking Tools Software
  33. Pentest Tools Review
  34. Hack App
  35. Pentest Tools For Ubuntu
  36. Hack Tool Apk No Root
  37. Pentest Box Tools Download
  38. Github Hacking Tools
  39. What Are Hacking Tools
  40. Black Hat Hacker Tools
  41. Hacker Tools Linux
  42. Hacking Tools Kit
  43. Pentest Recon Tools
  44. Hack Tools For Ubuntu
  45. Hacking Tools For Beginners
  46. Hacking Tools For Mac
  47. Hacker Tools 2020
  48. Hack Tools
  49. Hack And Tools
  50. Pentest Tools Apk
  51. Nsa Hacker Tools
  52. Hacking Tools
  53. Hacker Tools Windows
  54. Pentest Reporting Tools
  55. Pentest Tools For Android
  56. Hacker Tools For Ios
  57. Pentest Tools Bluekeep
  58. Pentest Tools Tcp Port Scanner
  59. Hacking Tools Windows
  60. How To Hack
  61. Pentest Tools Online
  62. Pentest Tools Website Vulnerability
  63. Black Hat Hacker Tools
  64. Pentest Tools Find Subdomains
  65. Hacking Tools 2019
  66. Hacking Tools Windows
  67. Hacker Tools Free
  68. Ethical Hacker Tools
  69. Best Hacking Tools 2019
  70. Hacking Tools Hardware
  71. Hacker Tools Mac
  72. Pentest Tools Download
  73. Pentest Tools Kali Linux
  74. Pentest Tools Linux
  75. Nsa Hack Tools
  76. Hacker Search Tools
  77. Hacking Tools For Mac
  78. Pentest Tools For Windows
  79. Hack Tools Online
  80. Hack Tools For Games
  81. Hacker Tools Online
  82. Hacker Tools For Windows
  83. Free Pentest Tools For Windows
  84. Pentest Tools Website
  85. Hacker Tools Software
  86. Hack Tools Mac
  87. Hack Tools 2019
  88. Tools Used For Hacking
  89. Pentest Tools Free
  90. Hack Tools
  91. Hacking Tools For Windows 7
  92. Easy Hack Tools
  93. Pentest Tools Kali Linux
  94. Hacking Tools Name
  95. Hack Rom Tools
  96. Termux Hacking Tools 2019
  97. Hack Tools For Windows
  98. Pentest Tools Find Subdomains
  99. Hack Tools
  100. Pentest Tools Find Subdomains
  101. Hacking Tools For Windows Free Download
  102. Pentest Reporting Tools
  103. Hacker Tools For Windows
  104. Termux Hacking Tools 2019
  105. Hacking Tools Windows 10
  106. Pentest Tools Download
  107. Ethical Hacker Tools
  108. How To Hack
  109. Pentest Automation Tools
  110. Hacking Tools For Games
  111. How To Install Pentest Tools In Ubuntu
  112. Hack And Tools
  113. How To Install Pentest Tools In Ubuntu
  114. Hacker Tools Github
  115. Ethical Hacker Tools
  116. Hacking Tools 2020
  117. Hacking Tools For Windows 7
  118. Tools 4 Hack
  119. Pentest Reporting Tools
  120. Hacker Tools Free
  121. Hacking Tools Windows 10
  122. Hacking Tools And Software
  123. Hacker Tools List
  124. Hack Tools For Windows
  125. Hacking Tools For Games
  126. Hacking Tools Mac
  127. Hack Tools Online
  128. Pentest Tools Review
  129. Hackrf Tools
  130. Pentest Tools Open Source
  131. Nsa Hack Tools
  132. Hack Tools Pc
  133. Black Hat Hacker Tools
  134. Hack Tools For Mac
  135. New Hacker Tools
  136. Pentest Tools Port Scanner
  137. Pentest Tools Windows
  138. Nsa Hacker Tools
  139. Pentest Tools Find Subdomains
  140. Hacking Tools Github
  141. What Is Hacking Tools
  142. Termux Hacking Tools 2019
  143. Physical Pentest Tools
  144. Pentest Tools Apk
  145. Pentest Box Tools Download
  146. Best Hacking Tools 2019
  147. New Hacker Tools

Comments

Popular posts from this blog

6352 hash passwords

CIF / FOB ROTTERDAM, HOUSTON PORT and TTM

You have {3} blocked messages on your server !!