Skip to content
  • Koichi Sasada's avatar
    c695536c
    use `st_update` to prevent table extension · c695536c
    Koichi Sasada authored
    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
    c695536c
    use `st_update` to prevent table extension
    Koichi Sasada authored
    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
Loading