Project

General

Profile

« Previous | Next » 

Revision c695536c

Added by ko1 (Koichi Sasada) 7 months ago

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