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

Fix an OOM related problem in the snippet() and offsets() functions of fts3.

FossilOrigin-Name: 61efff414254f209f1c69728ae2da3b3888b7290
This commit is contained in:
dan
2009-12-10 18:20:31 +00:00
parent b893721a45
commit 2c11d597c7
4 changed files with 23 additions and 14 deletions

View File

@ -330,7 +330,7 @@ proc doPassiveTest {name sql catchres} {
set str [join $answers " OR "]
foreach {nRepeat zName} $modes {
for {set iFail 48} 1 {incr iFail} {
for {set iFail 1} 1 {incr iFail} {
if {$::DO_MALLOC_TEST} {sqlite3_memdebug_fail $iFail -repeat $nRepeat}
set res [uplevel [list catchsql $sql]]