Commit 5ca4272
committed
Add regression test for concurrent interrupt and close TOCTOU
exqlite_interrupt() reads conn->db and calls sqlite3_interrupt() without
any lock. A concurrent close() can sqlite3_close_v2() and NULL conn->db
between the check and the call → sqlite3_interrupt on a freed pointer →
use-after-free segfault.1 parent 1e9e419 commit 5ca4272
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
848 | 862 | | |
849 | 863 | | |
850 | 864 | | |
| |||
0 commit comments