Commit Graph

13580 Commits

Author SHA1 Message Date
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
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
drh
b6b676ea7c Fix some identifier name de-quoting issues in the foreign key and trigger logic.
FossilOrigin-Name: 59e92bd9521f1e8315a9a7e7fd3d63b0c75eaf0e
2015-04-21 03:13:47 +00:00
drh
60f4e0918d Test case for the previous check-in.
FossilOrigin-Name: a526f58bc96c0fdead51b6bd9aafea7b48bf398e
2015-04-21 02:17:30 +00:00
drh
0f517ea8d4 Make sure the whereSplit() routine in the query planner is not confused
by the likely() operator.

FossilOrigin-Name: 588db14ffb4b0e8e76d511b7b1541db3ec78836a
2015-04-21 02:12:13 +00:00
mistachkin
76f6a130a9 Enable compilation and VSIX package creation with the Visual Studio 2015 CTP.
FossilOrigin-Name: 03b725a768290e3c7b31f1ba3310532fd7dc05cd
2015-04-21 00:23:38 +00:00
drh
9985dabbac Add the --mode option to fuzzershell.
FossilOrigin-Name: b940b0fa6cf68fef58344d269ad5d39468ffe72f
2015-04-20 22:36:49 +00:00
drh
4a74d076e3 Many new configuration options for fuzzershell.
FossilOrigin-Name: 41c954391690833bf2ece4ea14457ee4bdd74e90
2015-04-20 18:58:38 +00:00
dan
4eed05347c Fix a memory leak caused by duplicate entries in the sqlite_stat1 table.
FossilOrigin-Name: 2f58c8c9722fffc486610f9e6b08178d53a56b64
2015-04-20 15:13:08 +00:00
drh
cef2584335 Fix an obscure memory leak in sqlite3Stat4ProbeFree()
FossilOrigin-Name: c72abbe2c1735f3d563c6672616b2918b6209922
2015-04-20 13:59:18 +00:00
drh
f34e9aabd8 Enhance fuzzershell to support multiple blocks of SQL, each run in its own
private in-memory database.

FossilOrigin-Name: ab0a96ca73cfe92d5a837c71c148e8361f42acc3
2015-04-20 12:50:13 +00:00
drh
b496a8f547 Add an ALWAYS() around a new branch that was made unreachable by an even
newer change.

FossilOrigin-Name: 592c010478fba7410424f011a62e019c826f1ac3
2015-04-20 01:13:33 +00:00
mistachkin
19b887e4ec Fix another harmless compiler warning.
FossilOrigin-Name: 5ae853aaebaee76c9265061984185f74c10c4c8b
2015-04-19 23:48:10 +00:00
mistachkin
0311b622c4 Merge updates from trunk.
FossilOrigin-Name: 59d1a3bb6050a812c4eb0d25ac53327081b9efed
2015-04-19 23:40:55 +00:00
mistachkin
f659cf48e8 Modify the 'mkvsix' tool itself to support the Visual Studio 2015 CTP.
FossilOrigin-Name: e0b7a191f3c22d9eacf645c58be59e0fdcb8860d
2015-04-19 23:39:05 +00:00
drh
542a176d5e Fix an off-by-one assert() in the virtual table argument tokenizer.
FossilOrigin-Name: c83052e48bbae0f45db2a44155b4e5482ee4a901
2015-04-19 23:11:10 +00:00
drh
992590be1c Fix a broken assert() and comparison for INSERT INTO ... SELECT when the
SELECT uses an unknown collating sequence.

FossilOrigin-Name: e73ac0cbac257d2d2b28e51423e30d7449b6c7b5
2015-04-19 22:41:22 +00:00