Commit Graph

18 Commits

Author SHA1 Message Date
mistachkin
fda06befd5 Add retry logic for AV defense to winOpen. Also, refactor test suite to allow the key Tcl file operations (e.g. copy and delete) to be retried.
FossilOrigin-Name: 9007586fdabed8dbcc78581ea9821cfd1f9a4c8c
2011-08-02 00:57:34 +00:00
dan
68928b6c3e Some changes to test scripts related to codec enabled versions of sqlite.
FossilOrigin-Name: 85dd51a75c75b2a123744f646e04538e4e5d89b3
2010-06-22 13:46:43 +00:00
dan
026e598d0f Store the MemPage structure in memory following, instead of preceding, the page data for cached pages. This reduces the likelihood of a corrupt database page image causing SQLite to read past the end of a buffer.
FossilOrigin-Name: 0ce42e76654d9ba52dac74c940d38b17866016ba
2010-06-10 06:53:26 +00:00
dan
430e74cd9b Change all.test, quick.test and permutations.test so that they use a separate interpreter for each test file.
FossilOrigin-Name: 7c33eb5a5add8fe76dd412ecab5b6ff8cd78a98d
2010-06-07 17:47:26 +00:00
danielk1977
93caf5ad93 Modify the integrity-check code so that each b-tree page inspected is reinitialized while doing so, even if an initialized copy exists in the cache. This prevents an assert from failing when running integrity_check on a corrupt database. (CVS 6877)
FossilOrigin-Name: 709576c670f802bf4b6e5c0e8db2bbde2cc16a90
2009-07-11 06:55:33 +00:00
drh
49008596ed Update the error message on one of the corruption tests to account for the fact
that we are finding the corruption sooner. (CVS 6726)

FossilOrigin-Name: ba9848e7b89df1fb6bf6db2b9d66cd3ffce375df
2009-06-06 19:21:13 +00:00
shane
bbc795fdaf Minor tweak to test script to ensure every byte in file touched at least once. (CVS 6713)
FossilOrigin-Name: bc6c2d894b711361808a19b673803186d3a28369
2009-06-04 02:46:19 +00:00
danielk1977
e589a67f6c Fix a case where a corrupt database could cause an assert() to fail. (CVS 6496)
FossilOrigin-Name: 2c560e057e1da8a603efc36deea036f2392a4ab9
2009-04-11 16:06:15 +00:00
drh
1e9db16c55 Force the corruptC.test script to use file format 1. (CVS 5930)
FossilOrigin-Name: deadc2548d1e43cbbfe3af049cc5f59ee55bda46
2008-11-19 18:43:07 +00:00
shane
dcc50b74e6 Fixed several more crashes due to corrupt db files. Added corruptC.test to soak.test. (CVS 5905)
FossilOrigin-Name: 9b7a52e952c81e50611e04d2d79003b0ddc57ee5
2008-11-13 18:29:50 +00:00
danielk1977
0d0654119f Avoid some buffer overreads detected by valgrind while running corruptC.test. (CVS 5898)
FossilOrigin-Name: faa6bd7b615837c920b5b3b027115caa2f56ec15
2008-11-12 18:21:36 +00:00
danielk1977
ef988b47a4 In corruptC.test, explicitly set "PRAGMA auto_vacuum = 0". (CVS 5895)
FossilOrigin-Name: b6563af8f9517760c2346a820e241b0517a10fe0
2008-11-12 14:22:25 +00:00
danielk1977
ab396298c4 Modify a failing test case in corruptC.test. The test case was failing only because the integrity_check was returning a slightly different error message than expected. (CVS 5891)
FossilOrigin-Name: 0953f300f8e8b2bed79ef3189a1cb29f058f388b
2008-11-12 11:57:41 +00:00
shane
0af3f8935f Fixed a few more crashes when dealing with corrupt db files. (CVS 5888)
FossilOrigin-Name: f8bb34e40917e55696376d2def932a41ad43d0ae
2008-11-12 04:55:34 +00:00
shane
34ac18daf5 Fixed crash during an UPDATE when free cell size is corrupt. (CVS 5887)
FossilOrigin-Name: ec18667e2d2826a27f2c052ba3790ab5b8cf0bc4
2008-11-11 22:18:20 +00:00
shane
826d5b7e1c Prevent a crash during an UPDATE when the cell offset is corrupt. (CVS 5886)
FossilOrigin-Name: 99d4172ed6825c7efb6cbb28eb00d98323a13954
2008-11-11 20:51:50 +00:00
shane
5780ebdf79 Fixed crash in integrity_check with corrupt content offset size in page header. (CVS 5881)
FossilOrigin-Name: 0659a666ff0a9fc81ee4df3c35e535164c79e588
2008-11-11 17:36:30 +00:00
shane
2d16fb1d34 Test that single byte corruptions in increasingly larger quantities are handled gracefully. (CVS 5854)
FossilOrigin-Name: c73d915923e393f72e1c0897526a20527db2e03c
2008-10-31 13:57:40 +00:00