dan
fb0246ba8a
Return SQLITE_CORRUPT to the user if an attempt is made to add database page 1 to the free page list.
...
FossilOrigin-Name: 68876003f922635737349f55bc73a78891ea7028
2015-05-26 12:18:17 +00:00
dan
c5b7358513
Fix a problem with ignoring UNIQUE constraints on WITHOUT ROWID tables rendered redundant by the PRIMARY KEY.
...
FossilOrigin-Name: 3b936913f3dc2cae4c94f983f28d85b136a44c9f
2015-05-26 11:53:14 +00:00
mistachkin
27b1c8ac09
Silence harmless compiler warnings when building the command line utilities with MSVC.
...
FossilOrigin-Name: d26060c468cc6997e9933d9623a47fcc7d86c2da
2015-05-26 03:31:46 +00:00
mistachkin
7a94e6b061
Add fuzzcheck to makefile clean targets. Also, for consistency, replace a few tabs with spaces.
...
FossilOrigin-Name: eda2a437506f148bcb5bb33baa64b5ad8ae73ada
2015-05-26 03:24:33 +00:00
drh
e5c5f2cf77
Add the --result-trace option to fuzzcheck, and other interface enhancements.
...
FossilOrigin-Name: c415bb7bbfd531b138462589cdd58fa0204804e8
2015-05-26 00:28:08 +00:00
drh
aca7ea1e4d
Fix an important bug in the xRead method of the in-memory VFS for fuzzcheck.
...
FossilOrigin-Name: 58cd40e89f3060c63abb9a3fca385a1e72ce7bb4
2015-05-25 23:14:37 +00:00
drh
495a1ef59b
Add the fuzzcheck test program.
...
FossilOrigin-Name: 341cb6abe74e1e9d03c82ffdeba86be6a2d00397
2015-05-25 22:38:00 +00:00
drh
1573dc3bb1
Add fuzzcheck to all makefiles and fix compiler warnings.
...
FossilOrigin-Name: 7b3d21906a9650377cda56b94facdff75b2cb858
2015-05-25 22:29:26 +00:00
drh
370cf73c4f
Merge in trunk fixes.
...
FossilOrigin-Name: c71c2e1a991775e1711e9621a59dd8a60eec329b
2015-05-25 22:18:33 +00:00
drh
4ab31475dc
Improved tracing capabilities in fuzzcheck.
...
FossilOrigin-Name: 864bfdbfe7b196cc9df2136b15a28e2a0f2713cb
2015-05-25 22:17:06 +00:00
drh
15b3128656
Add the --native-vfs option on fuzzcheck.
...
FossilOrigin-Name: 12e95e3f178b89d649bc7e30db731df439ae1653
2015-05-25 21:59:05 +00:00
dan
c3e8ef1d0e
Fix a case of a corrupt database causing SQLite to read from up to 4 bytes before the start of a memory allocation.
...
FossilOrigin-Name: 7d2c4f7b6695806ab8ce0c6f49d8bc1d77a4320b
2015-05-25 20:04:15 +00:00
drh
b335d12df7
Merge the btree fixes out of trunk.
...
FossilOrigin-Name: f3cd8cecf4f7aa3429e3ebc90ed31c4e8fff7bc2
2015-05-25 19:37:17 +00:00
drh
a9542b1bc4
Add the --dbid and --sqlid parameters to fuzzcheck. Other fuzzcheck fixes.
...
FossilOrigin-Name: 75ec9299faca8ce3d49d825ba6ea60588a91d113
2015-05-25 19:35:42 +00:00
dan
08f901b008
Have the b-tree layer return SQLITE_CORRUPT to any attempt to open a cursor with a root page number less than 1.
...
FossilOrigin-Name: aa18c8e9d1676b1caa53bc5f5c1dc5f201089b88
2015-05-25 19:24:36 +00:00
drh
3b74d0327f
First code for a new utility program to rerun checks on a large number of
...
fuzzer-generated test cases.
FossilOrigin-Name: c5b4e363528aa1d2d5f41451f16de0aa91152b38
2015-05-25 18:48:19 +00:00
dan
0f8076dd69
Fix a couple of btree asserts that would fail when encountering 32-bit rollover in cell payload size fields (cell payloads this large always indicate corruption).
...
FossilOrigin-Name: 8fa0937a2f3476dd280259e252d6f422c33d38ee
2015-05-25 18:47:26 +00:00
dan
2fc3a6cd98
Fix a case where database corruption may cause SQLite to write past the end of a buffer.
...
FossilOrigin-Name: 97806a78142b15f89878e25ee70dc5b0524d6793
2015-05-25 17:07:29 +00:00
dan
cf3d17c604
Fix an assert() in btree routine freeSpace() that may be false if the database is corrupt.
...
FossilOrigin-Name: 00a473c56188cd60a74559effb114140e3fe8a8d
2015-05-25 15:03:49 +00:00
dan
3fb37f097c
Fix an fts4 matchinf() problem triggered by deferred tokens that are part of phrases that are part of AND expressions.
...
FossilOrigin-Name: f1e942a1dda496a509741e9cc2a17e8b4dac63a3
2015-05-25 10:57:13 +00:00
drh
af80a1c8e7
Fix an obsolete comment - no changes to code.
...
FossilOrigin-Name: 4e4228c47f862c7f1fb078bf1b8c1d604f09d365
2015-05-25 10:29:52 +00:00
drh
521d7bd214
Remove an incorrect and pointless assert().
...
FossilOrigin-Name: 8c3929bd42ff9c041df341aced5b7dbc0f563506
2015-05-25 09:33:48 +00:00
drh
7ca0954c2c
The assert() changes removed in the previous check-in are needed after all.
...
FossilOrigin-Name: 336fccc84cd7b770c9c3720efc9976269096232e
2015-05-24 21:46:03 +00:00
drh
0b538f2a81
Better detection of corruption in allocateSpace() in btree.c.
...
FossilOrigin-Name: bf7bb53ee2485a5342916d514d6c7291eb84c5f1
2015-05-24 21:09:52 +00:00
drh
a1f75d96fd
Detect database corruption in the modifyPagePointer() routine and abort.
...
FossilOrigin-Name: 4f0bba42f904e505900be67b00179ebb1f24ed03
2015-05-24 10:18:12 +00:00
drh
82110da971
Instead of early detection of corruption in balance_nonroot, simply ignore
...
the error, as it is harmless and exceedingly uncommon.
FossilOrigin-Name: 7bbf9b3cd6ebf103ebd8347579aef721d0dcd2dc
2015-05-23 19:53:48 +00:00
drh
3183ac590d
Earlier detection of a specific kind of corruption in the balance_nonroot()
...
routine.
FossilOrigin-Name: ee6dc9913a8733891576e6e298241f7440209c5e
2015-05-23 19:29:08 +00:00
drh
3c46b7f7fd
Minor documentation improvements. No changes to code.
...
FossilOrigin-Name: e446d9ce0049b8ce0fd4f03205a0c32776fc76cd
2015-05-23 02:44:00 +00:00
drh
c19bc9b6b0
Improved error messages in fuzzershell when unable to open the database.
...
FossilOrigin-Name: c404fcace83613a50015f15097b7f28123c221c3
2015-05-22 23:50:19 +00:00
drh
f9def06160
Fix a bug in fuzzershell caused by an uninitialized local variable.
...
FossilOrigin-Name: 745deab87adc378a5376aaa9451fb9485bc2f4c4
2015-05-22 23:45:56 +00:00
drh
cea1dc2798
Fix another bad assert() in btree - one that can be false on a corrupt database
...
file.
FossilOrigin-Name: 89f0bbfde4d86a7b15e93aab9c487b4355c6fb2d
2015-05-22 23:39:29 +00:00
drh
18070e08c5
Fix incorrect validation of the size of the BLOB returned by a geometry
...
function on the RHS of a MATCH operator in RTree. The old code worked for
64-bit systems (by chance) but fails on 32-bit.
FossilOrigin-Name: 10cc44f5a63e6cadf6940bb7310a177ee7fa6ee2
2015-05-22 23:17:28 +00:00
drh
381ef8124c
Add the sqlite3_value_dup() and sqlite3_value_free() interfaces.
...
Use these interfaces to enhance R-Tree to add the
sqlite3_rtree_query_info.apSqlParam field.
FossilOrigin-Name: c1814242e6ce035d486cfbad5a1f4b49aa8898f3
2015-05-22 21:12:59 +00:00
drh
10ca5b4809
Make sure sqlite3_value_dup() works correctly even for sqlite3_value
...
objects that are marked SQLITE_STATIC.
FossilOrigin-Name: f332ffc39b7a17fd6254d8dc699293a57a508ba0
2015-05-22 21:04:54 +00:00
drh
9dfedc8246
Fix minor issues with the sqlite3_value_dup() interface.
...
FossilOrigin-Name: 95edcf5010ecb8edd8eb74279c4766f9b655d4a2
2015-05-22 19:55:10 +00:00
drh
fd29973f11
Update with fixes and enhancements from trunk.
...
FossilOrigin-Name: 9605d008f5c763137e9734d033fe4510ca316858
2015-05-22 18:40:48 +00:00
drh
e2248cfd2d
The SRT_Table type for the SelectDest object is now just an SRT_EphemTab for
...
which the ephemeral table has already been allocated.
FossilOrigin-Name: b9727e6bbfc3c62c601227e86e62f2f39792fd1d
2015-05-22 17:29:27 +00:00
dan
6b76418e67
Have r-tree prefer to use the constraint "col MATCH ?" over "rowid = ?".
...
FossilOrigin-Name: b9fb95194d4f7c535f1d175fd2e18d69d76e8fc4
2015-05-22 16:08:42 +00:00
drh
afe028a815
Fix two faulty assert statements discovered by fuzzing.
...
FossilOrigin-Name: 799817bfb2bc95963c0e0d70063c4cb15c94ef74
2015-05-22 13:09:50 +00:00
drh
499e15bee1
Fix an assert in btree.c that can be false when using a corrupted database
...
file.
FossilOrigin-Name: a6eb2a39357c35dc13d549ef86c785ff5c69938a
2015-05-22 12:37:37 +00:00
drh
acd3374556
Add the --database option to the fuzzershell test program.
...
FossilOrigin-Name: c6d5512f4b8b1237fa4cf5f3f2eae19b160bcf26
2015-05-22 11:38:22 +00:00
drh
4f03f413bc
Add the sqlite3_value_dup() and sqlite3_value_free() interfaces. Use
...
these interfaces to enhance R-Tree to add the
sqlite3_rtree_query_info.apSqlParam field.
FossilOrigin-Name: a7ee40c4fc62843ac5b96ba47ca14a66e8cd6961
2015-05-20 21:28:32 +00:00
drh
7b12548906
Fix the initialization logic in CREATE TABLE AS so that the correct affinities
...
are applied to all values being inserted into the new table, even if the
RHS is a compound SELECT. Fix for ticket [f2ad7de056ab1dc9200].
FossilOrigin-Name: 6a0cf3ce9e68d0127f9653232e588ed59d34eca5
2015-05-20 17:36:49 +00:00
drh
f058b9c472
Add a test case to verify that CREATE TABLE AS does not store INT values
...
in TEXT columns. Ticket [f2ad7de056ab1dc92].
FossilOrigin-Name: 0e45e8f1574ef19a43dbd118440ddbc5cec80ce7
2015-05-20 17:25:44 +00:00
drh
9263220487
Simplification of the initialization code for CREATE TABLE AS.
...
FossilOrigin-Name: 937f659e8933011c44e822328a97cb5f0607c04d
2015-05-20 17:18:29 +00:00
drh
9df25c4736
A proposed fix for the problem of CREATE TABLE AS generating a table that
...
has INTEGER values in a TEXT column. Ticket [f2ad7de056ab1dc92].
FossilOrigin-Name: d5e2c1fc7625130a3cbacc95c28bb553a0119cb8
2015-05-20 15:51:09 +00:00
drh
00d5ab7405
Fix handling of queries with VALUES on the left and UNION ALL SELECT on the
...
right and a LIMIT clause.
FossilOrigin-Name: c403502cdce8b82e570e6fc49ab7f5144800c189
2015-05-20 00:15:27 +00:00
drh
7f0cd09cdd
Enhance the selecttrace display by showing Select.selFlags.
...
FossilOrigin-Name: 45d3893c6142ee1dfed48e26a13cf547da12468a
2015-05-19 23:56:07 +00:00
drh
7ac07bda73
Fix the MSVC makefile so that it works with OTA. Fix a harmless compiler
...
warning in FTS3.
FossilOrigin-Name: c7b16645307d6e46c4153693d6806269de64955f
2015-05-19 22:56:45 +00:00
drh
856d446efe
Allow R-Tree geometry functions to take 8-byte BLOB arguments which are
...
passed directly through to the underlying callback, and which can be used
to pass pointers into the callback.
FossilOrigin-Name: b271ed56532a78323accc8a7cb348d55f95c350e
2015-05-19 22:20:48 +00:00