1
0
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:
dan
2021-09-25 18:21:01 +00:00
parent 1580d50b76
commit c28cc32d81
4 changed files with 24 additions and 10 deletions

View File

@ -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