1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix a problem handling OOM errors in fts3 that could occur when parsing multi-token strings.

FossilOrigin-Name: 4c4d1db00bd2c522165876dcf1606116a72525d9ffc891b266213704e25cde55
This commit is contained in:
dan
2024-11-19 11:58:32 +00:00
parent ea206ad17b
commit fefc7b1bf7
4 changed files with 33 additions and 26 deletions

View File

@ -216,6 +216,14 @@ do_faultsim_test 8.4 -prep {
} -test {
faultsim_test_result {0 3}
}
do_faultsim_test 8.5 -prep {
faultsim_restore_and_reopen
db func mit mit
} -body {
execsql { SELECT mit(matchinfo(t8, 'l')) FROM t8 WHERE t8 MATCH '"a b c"' }
} -test {
faultsim_test_result {0 3}
}
do_test 9.0 {
faultsim_delete_and_reopen