diff options
| author | Koichi Sasada <ko1@atdot.net> | 2024-12-20 17:42:53 +0900 |
|---|---|---|
| committer | Koichi Sasada <ko1@atdot.net> | 2024-12-23 11:05:34 +0900 |
| commit | c695536cc8ea4be69849394b0c64c974d52c603a (patch) | |
| tree | 4f56d685c8b006771fe2a22f31e68db2b3847a56 /include/ruby/debug.h | |
| parent | 60c814607d5a1cc0522303cfe8378183a427dd79 (diff) | |
use `st_update` to prevent table extension
to prevent the following scenario:
1. `delete_unique_str()` can be called while GC (sweeping)
2. it calls `st_insert()` to decrement the counter
3. `st_insert()` can try to extend the table even if the key exists
4. `xmalloc` while GC and cause BUG
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12407
Diffstat (limited to 'include/ruby/debug.h')
0 files changed, 0 insertions, 0 deletions
