Commit Graph

13599 Commits

Author SHA1 Message Date
dan
929b923388 Fix an assert() failure caused by setting "PRAGMA journal_mode=off" on an database in exclusive-mode that has already opened the journal file.
FossilOrigin-Name: 40db3e40126db1035fcc12989026915744dc5651
2015-05-01 16:57:24 +00:00
drh
5789d1a46f Remove obselete comment text from the description of the Table object.
No changes to code.

FossilOrigin-Name: 6566b72a9c68b347d126189b376f52ffd56edfba
2015-05-01 15:25:51 +00:00
drh
abf582509d Use the sqlite3Fts3ErrMsg() function to set error message text in FTS3,
and to ensure that error messages are not overwritten and thus leaked.

FossilOrigin-Name: 605347e087ec5eb817f3c94f4616abe26c7ab66b
2015-05-01 14:07:30 +00:00
drh
6296a2ab4b Enhance the CLI to initialize the dbstat virtual table if compiled using
SQLITE_ENABLE_STAT_VTAB.

FossilOrigin-Name: 822dfc00173dad7703aa6413bb94f72f0da8e2c6
2015-04-30 20:35:33 +00:00
drh
f2db338926 Fix a harmless comment typo.
FossilOrigin-Name: 012a0c4e8485b1c2206ecff1946bf036bae04f3c
2015-04-30 20:33:25 +00:00
dan
d154a43ed9 Avoid dropping an error code in test function sqlite3_dbstat_register().
FossilOrigin-Name: 9a9f633f035fc3f6484b2d8eeed937374f4558c4
2015-04-30 20:26:53 +00:00
drh
6c98415a1c Modify the mkfuzzdata1.tcl script so that it retains the culled test vectors
in the tmp2 subdirectory.

FossilOrigin-Name: 431a958f3b605ef059119eaedd69796e14bec291
2015-04-30 13:06:15 +00:00
drh
6a412b8be9 Fix signed/unsigned comparison compiler warnings. Add the
SQLITE_OMIT_RANDOMNESS compile-time option to cause the PRNG to be seeded
identically on every run, for testing purposes.

FossilOrigin-Name: 93ce2bca701efc67aeb517c4d641bde71332e8a0
2015-04-30 12:31:49 +00:00
drh
f3cdcdccbe Use sqlite3_malloc64() in place of sqlite3_malloc() internally.
FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
2015-04-29 16:50:28 +00:00
drh
b4a91a9a88 Improved support for OSTRACE on Windows.
FossilOrigin-Name: ca43812bde499a23244e2860d3ceddc97d29f09e
2015-04-29 00:35:07 +00:00
mistachkin
5824d44bab Revise when the sqlite3ErrName() function is defined.
FossilOrigin-Name: 9e593fb3dbc58e86f499ba4399530e3e760eb84d
2015-04-28 23:34:10 +00:00
drh
0bdef92dc2 Update the test/fuzzdata1.txt file with the latest cases discovered by AFL.
FossilOrigin-Name: f2063f5320f5a5d884f9c931eb91b7cc94945b92
2015-04-28 14:49:41 +00:00
dan
d68d1f4863 Fix an assert() failure that could occur if the internal sqlite3_rename_parent() SQL scalar function was invoked directly.
FossilOrigin-Name: 36e515261825be60ffdc73d13340d77cf377e8e1
2015-04-28 14:07:02 +00:00
drh
bd6789e761 Fix sqlite3VdbeMakeWritable() to always clear the MEM_Ephem flag.
Change the OP_Move opcode to always deephemeralize moved content.

FossilOrigin-Name: fbb06727181eac1470b2dd458d2d159146439d21
2015-04-28 14:00:02 +00:00
drh
5fb71254e4 Shift the Mem.pScopyFrom pointer in the correct direction in OP_Move.
Fix for a defective check-in [a2135ad13049] and ticket [d6352363751].
Debugging code only - does not affect normal operation.

FossilOrigin-Name: add4e043b35f9c454dea7b888eef1c1e14d791f1
2015-04-28 12:44:55 +00:00
drh
06d83377e1 Add code to the shell to optionally initialize the dbstat virtual table.
FossilOrigin-Name: 7ed86dd3b85ee092a19fe5d1e2fba39ce0166a2a
2015-04-28 12:27:22 +00:00
drh
42c0a2b2f3 Fix comment typos. No code changes.
FossilOrigin-Name: 60174cf572f8788e67a0434d5fe763724d7425a3
2015-04-28 01:28:36 +00:00
drh
4d35c41f48 Add a TCL script that can be run to generate the fuzzdata1.txt file.
FossilOrigin-Name: fdc79fd14af8e05d1d5b4665303715b391f2e402
2015-04-28 00:53:26 +00:00
dan
995f8b9d73 Add fault-injection tests for the code in test_stat.c.
FossilOrigin-Name: ea5e0b74c997492025225cd86e65e8a8c86ca4a0
2015-04-27 19:53:55 +00:00
drh
a30c158c38 Update the fuzzer test data after having run it through afl-cmin to remove
redundant test cases.

FossilOrigin-Name: 8134d41b964428b3af022735bce9d07c6ad28b21
2015-04-27 15:08:53 +00:00
drh
b3f3d64b4b Fix compiler warnings in sqldiff.
FossilOrigin-Name: 5f48d6f6c0a573ecc5bd42cb6c019288e22d295f
2015-04-25 18:39:21 +00:00
drh
375d9b1f1c Update the AFL fuzzer data with newly discovered paths.
FossilOrigin-Name: d98219805d4596360ac6ae9647687f8dc709828a
2015-04-25 17:45:36 +00:00
drh
7c84c02ce3 Fuzzershell: change the error summary output to work with releasetest.tcl.
Reduce the maximum number of OOM interations.

FossilOrigin-Name: f5e6c4b28d25429aac53ea8cb334a2e6bd821f39
2015-04-25 16:39:49 +00:00
drh
f332071b7f Add the fuzzoomtest target to the makefiles. Invoke fuzzoomtest from
releasetest.tcl.

FossilOrigin-Name: f60657c2ae8a11f1e546c953bca07d9396142f73
2015-04-25 13:39:29 +00:00
dan
f89aa47f80 Fix an obscure memory leak that could follow an OOM in where.c.
FossilOrigin-Name: 08ec9f2f5a446774bb8e9b9b0ef463dd5458d28e
2015-04-25 12:20:24 +00:00
drh
be5248f084 In fuzzershell: (1) comment fixes. (2) Set and clear g.zTestName[] correctly.
(3) Use the value in g.zTestName[] in error messages.

FossilOrigin-Name: b7394755fab81329d56bad1b506e536b2fcbe8cd
2015-04-25 11:35:48 +00:00
drh
0ee751fb67 In the fuzzershell, always invoke the trace and log callbacks even if output
is suppressed.  Keep track of the current test name in a global variable
for simplified debugging.

FossilOrigin-Name: 3045f454817f657df801358c40c665b0b0d73c1f
2015-04-25 11:19:51 +00:00
drh
9a9705de5c Do not send the extra ";" and "\000" tokens to the parser if a prior error
has occurred.

FossilOrigin-Name: 9aa70ddf2ca6044634560a801b43df121384eb64
2015-04-25 00:32:30 +00:00
drh
9f18f7434e Add fflush() calls to fuzzershell to keep stderr and stdout synchronized.
FossilOrigin-Name: 2b98a25237d1b3e64aec2772b622e8b3be2df454
2015-04-25 00:20:15 +00:00
drh
048810b63b Add the --oom option to fuzzershell.
FossilOrigin-Name: 14a9e4a377bf2974f5db148c8f86e2c5ffdfa28d
2015-04-24 23:45:23 +00:00
drh
61a0d6bc55 Fix fuzzershell so that it works with SQLITE_OMIT_TRACE.
FossilOrigin-Name: dc88fe7e641c52d27fba8c753cee590db87388c5
2015-04-24 18:31:12 +00:00
drh
0ef84d0e5e Add the --with-tcl=DIR option to the test/releasetest.tcl script.
FossilOrigin-Name: 4dda916a572bcb54c8cf3b81d965328632a722eb
2015-04-24 17:50:37 +00:00
drh
8ea5eca183 Run fuzzershell as part of the valgrindtest makefile target.
FossilOrigin-Name: 0bb96a037bd7179cb3a6137bb29827fc7d72ec3f
2015-04-24 16:53:03 +00:00
drh
f1e1736fe1 Add the fuzztest target to the MSVC makefile.
FossilOrigin-Name: 98edc6152cdd935dc83c1330c088145e7adb9dd0
2015-04-24 16:16:31 +00:00
drh
e1a71a582f Add AFL-generated test cases in the test/fuzzdata1.txt file. Automatically
run fuzzershell against those cases on a "make test".

FossilOrigin-Name: 627ea83c26b420088f101801eb8765127f47d2d0
2015-04-24 16:09:12 +00:00
drh
875bafa17a Add the --unique-cases option to fuzzershell.
FossilOrigin-Name: 7cb718491b5de77d4a73d8484324b66a36815019
2015-04-24 14:47:59 +00:00
drh
1cbb7fa95c Fuzzershell enhancements: (1) Add the --verbose and --quiet flags
(2) Show percentage complete and final test count for multi-test inputs
(3) Omit trace and result logs unless the --verbose flag is used.

FossilOrigin-Name: ed202ffac2eb85be9a18dca2a051ea3be16f8893
2015-04-24 13:00:59 +00:00
drh
41148f83c4 Fix a faulty assert() in the "AS" alias resolution logic of the parser.
FossilOrigin-Name: b5e43602833249aa4b73337bf85b7f308450dab6
2015-04-23 13:37:05 +00:00
drh
00808deed0 Improvement to "ID" formatting on the ".selecttrace 0x1ff" debugging function.
FossilOrigin-Name: 01c50cee37bfaddfecdda014728c35a1be1d991a
2015-04-23 13:00:42 +00:00
dan
38f2024062 Fix a problem causing the fts3 integrity-check to fail if run inside a transaction.
FossilOrigin-Name: 3b925189a75eae875da256b6e54999cad3cef1eb
2015-04-23 11:52:04 +00:00
drh
0ba51089c8 Improved filtering of input for fuzzershell for modes other than generic.
FossilOrigin-Name: 025e8370dde2918b66683f8d7fa9c7d23d03c9b4
2015-04-22 13:16:46 +00:00
drh
3fb2cc1173 Change the printf, strftime, and glob modes of fuzzershell so that they
reject all inputs that do not start with a string literal followed by a
comma.  This helps the fuzzer focus in on the kinds of behavior those modes
are intended to test.

FossilOrigin-Name: 1cceefa7c6585bca786fe9f7118f7beb829ad709
2015-04-22 11:16:34 +00:00
mistachkin
318d38cf7e When compiling for UAP, link against the new minimal MSVC runtime.
FossilOrigin-Name: 2cb945116e7a5b78741b19839899826b539d5868
2015-04-22 01:33:53 +00:00
drh
1cb50c880e Alternative fix for the double-initialization of type and collating sequence
problem that leaves the estimated table size intact.

FossilOrigin-Name: 623ddbdbf48d26dac58c593bcb9e7b184334ddfc
2015-04-21 17:17:47 +00:00
drh
dfb5e1cbc6 Make sure the datatype and collating sequence of transients tables are
not initialized more than once.  Otherwise a memory leak results.

FossilOrigin-Name: 9e6beda2c8d879e438ee933e658f860d6eb42a20
2015-04-21 17:07:01 +00:00
dan
464083544e Ensure that tables names are dequoted exactly once by the trigger logic.
FossilOrigin-Name: 9d887b92f8086961e045f8acb9ee7a443796d411
2015-04-21 16:38:49 +00:00
drh
be360e1ed1 Fix a memory leak in the SELECT code generator tracing logic (code that is
omitted in non-debugging builds).

FossilOrigin-Name: b623ebd859dcb1d99398aa9953f6b113bad26304
2015-04-21 16:09:07 +00:00
dan
4b79bde7a2 Fix an obscure problem with "INSERT INTO tbl(cols) SELECT" statements where the SELECT is a compound with an ORDER BY and "cols" is a strict subset of tbl's columns.
FossilOrigin-Name: 718d5d0eab045a874107e078a857226a80ab912d
2015-04-21 15:49:04 +00:00
drh
7c052da54d Change an assert() in the aggregate query code generator into a testcase().
FossilOrigin-Name: d1e6bc918b0c8e0701f5e15afb91b84a9004231b
2015-04-21 15:16:48 +00:00
dan
3c9a073723 Fix an fts4 problem to do with the handling of phrases that contain zero tokens.
FossilOrigin-Name: caba5be0b2bdaf4eb4af9af267c0c22dfbd3dba5
2015-04-21 12:06:53 +00:00