diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-08-21 09:42:30 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-08-22 10:01:55 -0400 |
| commit | 56a34b5af58b55177d671cc6f12241ef8b18c23c (patch) | |
| tree | d4778971fff6a2c644dadec2c9e2fecd578bd6ee /test/ruby/test_thread_queue.rb | |
| parent | df9a6aa94330cbf414afcd957d1b87defc67e1c5 (diff) | |
Fix use-after-free for WeakKeyMap
[Bug #20688]
We cannot free the key before the ST_DELETE because it could hash the
key which would read the key and would cause a use-after-free. Instead,
we store the key and free it on the next iteration.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11421
Diffstat (limited to 'test/ruby/test_thread_queue.rb')
0 files changed, 0 insertions, 0 deletions
