You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix TOCTOU in exqlite_close: move conn->db NULL check inside lock
Two concurrent close() calls both passed the pre-lock `conn->db == NULL`
check. One would close the db and set conn->db = NULL inside the lock;
the second would then call sqlite3_get_autocommit(NULL) → SIGSEGV.
Move the NULL check inside the critical section so only one thread can
ever observe and act on a non-NULL conn->db.
Fixes: "concurrent double close does not segfault" regression test.
0 commit comments