mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a bad interaction between the pager cache and the dbstat module that could lead to a malfunction following an OOM. dbsqlfuzz 9ed3e4e3816219d3509d711636c38542bf3f40b1.
FossilOrigin-Name: e03554a6a8c33d820922edccf605a2ce92055315bf22e464207ea8c0d81e3dd6
This commit is contained in:
@ -41,5 +41,15 @@ do_faultsim_test 1 -faults * -prep {
|
||||
faultsim_test_result {0 8}
|
||||
}
|
||||
|
||||
do_faultsim_test 2 -faults * -prep {
|
||||
faultsim_restore_and_reopen
|
||||
register_dbstat_vtab db
|
||||
execsql { SELECT 1 FROM sqlite_master LIMIT 1 }
|
||||
} -body {
|
||||
db eval { SELECT * FROM sss } { db eval { SELECT randomblob(5000) } }
|
||||
} -test {
|
||||
faultsim_test_result {0 {}}
|
||||
}
|
||||
|
||||
finish_test
|
||||
|
||||
|
Reference in New Issue
Block a user