Add test case for fuzzer case crash-18fe4e.

FossilOrigin-Name: 8372468bb5d8922cf20b8bbee34cfd6044ceb09c26a4efa79a5e6df2c7c4b730
This commit is contained in:
dan 2022-08-19 20:10:51 +00:00
parent 78ed74ef8e
commit f56291ed02
3 changed files with 33 additions and 9 deletions

View File

@ -1,5 +1,5 @@
C In\sthe\s".dump"\scommand\sof\sthe\sCLI,\sif\sa\sschema\sstatement\sends\swith\san\nunterminated\scomment,\stry\sto\sterminate\sthat\scomment\sprior\sto\sappending\nthe\s";"\sat\sthe\send.\s\s[forum:/forumpost/d7be961c5c|Forum\spost\sd7be961c5c].
D 2022-08-17T20:18:34.624
C Add\stest\scase\sfor\sfuzzer\scase\scrash-18fe4e.
D 2022-08-19T20:10:51.822
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@ -885,7 +885,7 @@ F test/dbfuzz001.test 55e1a3504f8dea84155e09912fe3b1c3ad77e0b1a938ec42ca03b8e51b
F test/dbfuzz2-seed1.db e6225c6f3d7b63f9c5b6867146a5f329d997ab105bee64644dc2b3a2f2aebaee
F test/dbfuzz2.c 4b3c12de4d98b1b2d908ab03d217d4619e47c8b23d5e67f8a6f2b1bdee7cae23
F test/dbpage.test fce29035c7566fd7835ec0f19422cb4b9c6944ce0e1b936ff8452443f92e887d
F test/dbpagefault.test e917cd250018b836e8d7d1a659c63bcd25737a8f31f15925b891b8f92247fdf9
F test/dbpagefault.test 20fe3a2a295f1c8cb30195b7b58a010530ecbc060e53e146af9e3e4fde4cab15
F test/dbstatus.test 4a4221a883025ffd39696b3d1b3910b928fb097d77e671351acb35f3aed42759
F test/dbstatus2.test f5fe0afed3fa45e57cfa70d1147606c20d2ba23feac78e9a172f2fe8ab5b78ef
F test/decimal.test fcf403fd5585f47342234e153c4a4338cd737b8e0884ac66fc484df47dbcf1a7
@ -1999,8 +1999,11 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
P 62f934bff495850d0763e07ffa44a557f066ecba9d039363f32287213cba819f
R f81b87acda08a2789d4e7c27b7b89cff
U drh
Z 0ac82790ca7f9e87feb2c5a2f457751d
P 96e112da1ac56767cf49f26132833745b6020d2c60f5c36f86ca84f87ad30c81
R 28505063cdffb9084d2435033596eaeb
T *branch * crash-18fe4e
T *sym-crash-18fe4e *
T -sym-trunk *
U dan
Z 77ad7cb07d337524c18e3fbb9e8e199f
# Remove this line to create a well-formed Fossil manifest.

View File

@ -1 +1 @@
96e112da1ac56767cf49f26132833745b6020d2c60f5c36f86ca84f87ad30c81
8372468bb5d8922cf20b8bbee34cfd6044ceb09c26a4efa79a5e6df2c7c4b730

View File

@ -22,7 +22,6 @@ if {[permutation] == "inmemory_journal"} {
set testprefix dbpagefault
faultsim_save_and_close
do_faultsim_test 1 -prep {
faultsim_restore_and_reopen
@ -49,4 +48,26 @@ do_faultsim_test 2 -prep {
faultsim_test_result {1 {no such schema}} {1 {SQL logic error}}
}
reset_db
do_execsql_test 3.0 {
CREATE TABLE x1(z, b);
CREATE TRIGGER BEFORE INSERT ON x1 BEGIN
DELETE FROM sqlite_dbpage WHERE pgno=100;
UPDATE sqlite_dbpage SET data=null WHERE pgno=100;
END;
}
do_faultsim_test 3 -prep {
catch { db close }
sqlite3 db test.db
execsql { PRAGMA trusted_schema = true }
} -body {
execsql { INSERT INTO x1 DEFAULT VALUES; }
} -test {
faultsim_test_result {0 {}}
}
finish_test