SELAMAT DATANG DI TEMPATKU.

Semoga anda puas dan betah di tempatku. Walau pun semua serba sederhana serta ke kurangan. Maklum aja, aku baru belajar...! Karena itu aku sangat mengharapkan sekali Petunjuk serta Bimbingan dari anda yang datang ke tempat ini. Demi kemajuah dan perbaikan Blog yang masih sembraut tak karuan. dan serba asal - asalan.

Wasalamm...!

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 articles

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

Tidak ada komentar:

Posting Komentar