drh
eecb3e6b16
Version 3.37.2
...
FossilOrigin-Name: 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5d17a0
version-3.37.2
2022-01-06 13:25:41 +00:00
drh
7bc0d3862a
Remove two NEVER() macros that can sometimes be true if the database is
...
corrupt. dbsqlfuzz 0414d2c18290fc80fd5fb540def7d3e46c1ae9c6.
FossilOrigin-Name: e1871201e73c1d970f0434d3c7190da2c1c49ded3a359640d959ec0c0450b8ed
2022-01-05 21:08:48 +00:00
drh
2300c5a646
Increase the version number to 3.37.2
...
FossilOrigin-Name: 7b911356af8f985eefdb190e1205933eaa0bef35e5d755b279514e7b96f9d0c4
2022-01-05 18:56:59 +00:00
drh
dde17957b7
Fix an assert() failure that could follow an OOM when coding a RETURNING trigger. dbsqlfuzz case 5d3e2438f15dc32b473d9f29413157857efa1212.
...
FossilOrigin-Name: 93965e67e2478fc99d7abfd6790edac353358373873bb6ac82c7c65dbe52a5de
2022-01-05 16:02:23 +00:00
drh
cf6b0e27d2
Improved handling of OOM errors in sqlite3ExpandReturning().
...
dbsqlfuzz 1040b720f0bbc3bdcfe7336acffbf71517e3ef82.
FossilOrigin-Name: b9ed2a2921a8f3f07a3a2c9b954806df924b3806795ab876bbbda28578175288
2022-01-05 12:01:34 +00:00
drh
36d39bcc48
Do not open a rollback journal file when the journal_mode is OFF, even if
...
such a file exists on disk. See
[forum/forumpost/ec2a102440|forum post ec2a102440] for a description. I so
far have been unable to find any harm to come of the problem, other than the
assertion fault when in DEBUG mode.
FossilOrigin-Name: 71f21f172cbc033f70604d166f17118472491fcf8b78350bd347de016132b464
2022-01-02 19:43:58 +00:00
drh
024806ffb6
Clear the cache of triggers used to implement CASCADE foreign key constraints
...
whenever the schema changes. Fix for the problem identified by
[forum:/forumpost/2831335356|forum post 2831335356].
FossilOrigin-Name: 4f1313c67f8c3025ed15793e370617d14e950c13217f179bfb01f8f48fbbead9
2022-01-02 18:10:48 +00:00
drh
c84cb56f81
Earlier detection of corruption in sqlite3BtreeDelete(). Fix for
...
the assertion fault reported by
[forum:/forumpost/9d78389221|forum post 9d78389221].
FossilOrigin-Name: eb07219965721e0a2017d0462747b07178c23f51e3333036e0cb8f5b4751f404
2022-01-02 17:46:49 +00:00
drh
2f2b676b7b
Do not raise an SQLITE_SCHEMA error if in sqlite3Init(). Fix for PoC #2 in
...
[forum:/forumpost/b03d86f951|forum post b03d86f951]. See TH3 for test
cases.
FossilOrigin-Name: 25beca31cf3dbad0e78085c5ceed797a461cfaddc2d41fb7a093aa27098e50d5
2022-01-02 17:37:56 +00:00
drh
2718c7dec7
Fix an obscure problem with releasing savepoints stored in an in-memory journal that could cause subsequent savepoint rollback to fail.
...
FossilOrigin-Name: 3c0806e4df3ba795962b0111236b2b6f27f63a35a02055c251f750ef02622803
2022-01-02 17:24:29 +00:00
drh
4a6393e96e
Remove an obsolete assert() statement that no longer does anything useful
...
and which is not always true. Fix for PoC #1 of
[forum:/forumpost/b03d86f951|forum post b03d86f951].
FossilOrigin-Name: 0829c1001bcfadf0d0af2b2c2e01ed60b24156b7c4e7c49cb29f3002ce8e36db
2022-01-02 17:14:39 +00:00
drh
48b9d17680
Fix a faulty assert() statement - adding a CORRUPT_DB term - based on a test
...
case derived from [562805cf488a455c]. Also add a test case to that prior
issue.
FossilOrigin-Name: f9505fcb28d05ac2319a56d936f840b8de502a49dda16ded8b7ed9dd9dffe509
2022-01-02 17:13:36 +00:00
drh
9dba2cc038
Fix harmless compiler warnings seen with MSVC.
...
FossilOrigin-Name: 6e08a542ad6af7032e5badcdd50a8ed95c07bf7b15ae2b62334376b75a2e9731
2022-01-02 17:02:54 +00:00
drh
adb21d4482
Move the pTriggerPrg and pCleanup elements of the Parse object up into the
...
section of that object that is persisted across calls to sqlite3NestedParse().
This fixes a memory leak
[forum:/info/24bd1fef7e9323ef|reported in forum post 24bd1fef7e9323ef].
FossilOrigin-Name: ee8b2397a67c14badb836570f815ca6c59f6936100669adafe815d7cb997cb43
2022-01-02 17:00:19 +00:00
drh
57acbb1380
Version 3.37.1
...
FossilOrigin-Name: 378629bf2ea546f73eee84063c5358439a12f7300e433f18c9e1bddd948dea62
version-3.37.1
2021-12-30 15:30:28 +00:00
drh
f74840dadb
Disable the atoi1.test test module on non-x64 hardware.
...
FossilOrigin-Name: 986a94d036f029539c3bb3873096f4a85ee26fc674f56856c57ca3dfd3bd0f37
2021-12-30 12:26:16 +00:00
drh
2e4f1fd0f8
Fix windowC tests to specify little-endian or big-endian UTF16, for cross-platform portability. [forum post 559b84a5c6|forum:/forumpost/559b84a5c6]. And
...
give the correct prefix to tests in the windowC.test module.
FossilOrigin-Name: 8af7cb2a3e7ca778695a7a44359537457bf57dc8bdad9b2b4d20a73385c028d8
2021-12-30 11:35:38 +00:00
drh
b484ae62b8
Do not attempt to reprepare a prepared statement that returns SQLITE_SCHEMA
...
if there was an OOM. This enhancement supercedes check-in
[fee469925231d074].
FossilOrigin-Name: 103f95db3e17d7d021b489c160b84e66c630b4f13516be11d10fffe2b42599fa
2021-12-30 11:27:53 +00:00
drh
be531827a6
Change an assert() in FTS3 into assert_fts3_nc(), since it is a harmless
...
condition that can occur when processing a corrupt database file.
FossilOrigin-Name: 35e2b27af7242a3f74b31e0e25a0ea892f6aec66341b9194c0f5957f9d1926bc
2021-12-30 11:13:44 +00:00
drh
bbefc9e821
Fix a minor issue in the configure script.
...
FossilOrigin-Name: 0413d37e327525d7747d9f9643eb73197a83d9e810bcdc3e0cd35762a94ba22b
2021-12-30 03:56:30 +00:00
drh
7771ab2192
Following a prior error, an ALWAYS() in sqlite3ExprCanBeNull() might be false.
...
dbsqlfuzz 5dbec6678a20e7595a34dfdd869a3b9722b3ca43.
FossilOrigin-Name: b33e47709a2eb56b543ee3a34af201cd05e316bde8dcf45cebcf4e157d728508
2021-12-30 03:22:21 +00:00
drh
fe553b671c
When a table has an INTEGER PRIMARY KEY ON CONFLICT REPLACE and some other
...
uniqueness constraint, and it participates in an upsert on that other
constraint, ensure that code that checks for conflicts on the INTEGER PRIMARY
KEY is well-formed. Fix for the problem reported by
[forum:/forumpost/06b16b8b29f8c8c3|forum post 06b16b8b29f8c8c3].
FossilOrigin-Name: 1f1e0b4e6d3a63fecaef8fafc8374ff17cff6d7af4c03994fa245e9953ee42cb
2021-12-30 03:12:37 +00:00
drh
3d25b94a13
Fix an OOB read that could occur in fts5 when processing corrupt records.
...
FossilOrigin-Name: 734606ea1a42c2e31ea62c114f2480b52182114b6bd87eb2f1145a171daad80f
2021-12-06 19:03:56 +00:00
drh
b8b877b3dd
Do not allow SQLITE_LIMIT_LENGTH to be set lower than 1 as an
...
SQLITE_LIMIT_LENGTH of 0 causes lots of unnecessary problems for
users of the sqlite3_str object.
FossilOrigin-Name: 286243f3a49f721b2ed5b278738e9edd8ca0f190abdbec645866bce97fcc7d04
2021-12-06 16:56:06 +00:00
drh
5b6692dddd
Do not allow certain dangerous ".testctrl" commands in safe mode.
...
FossilOrigin-Name: 4602644f858eb3b55fec0ead1de58de1f60cb85165cbb309bfe6bb136099a895
2021-12-06 16:51:03 +00:00
drh
7956fbb7b6
Fix SQLITE_TESTCTRL_IMPOSTER so that it is a harmless no-op if the schema
...
parameter is invalid.
FossilOrigin-Name: b15c553c2ca3143c269e25f41e1a4e6c00f72a89e4b0a382260620567f159081
2021-12-06 16:42:31 +00:00
drh
764d1809ce
In the shell tool, avoid modifying internal data structures until after the arguments to ".open" have been parsed.
...
FossilOrigin-Name: cbd69ed8afd3facda39fe8c81a3e8e4a1928923bcfd93e99d1bb8b3868ef3e5b
2021-12-06 16:36:37 +00:00
drh
5aa46f9bd6
Start a new branch on which to cherrypick fixes against 3.37.0.
...
FossilOrigin-Name: cea9e41aaee9b43496909fa2ba80dddaee1dd77d44bcb4d8d38034d1b003d762
2021-12-06 16:29:53 +00:00
drh
315e3122c3
Version 3.37.0
...
FossilOrigin-Name: bd41822c7424d393a30e92ff6cb254d25c26769889c1499a18a0b9339f5d6c8a
version-3.37.0
2021-11-27 14:13:22 +00:00
drh
14851b9a14
Fix a harmless comment typo.
...
FossilOrigin-Name: 7c567338ae4dd31097e9ae5c693b84369c35c5a52534797e8186b4be7297ba78
2021-11-27 12:03:51 +00:00
drh
855a165fec
Add platform "Darwin-arm64" to test/releasetest_data.tcl.
...
FossilOrigin-Name: 1d5c9aacb8ab6349935561cc12734cf348c12c86e4663ddc7af113b3ed0f6186
2021-11-26 20:26:37 +00:00
drh
913306a53a
Improved defenses against integer overflow when computing the size of a
...
memory allocations. No bugs were fixed here. But perhaps future bugs will
be prevented.
FossilOrigin-Name: eb878c01f317f09e8ef6b1bd2ec8d6d5cd6ce0bdfe9da7fa7d92d2047cc9d9e4
2021-11-26 17:10:18 +00:00
drh
e574a9233c
Fixes to internal comments. No changes to code or documentation.
...
FossilOrigin-Name: 1489b196ce82cddf7360aff6c89219ca25e666187f0f5ff6419ba3b504cdef8d
2021-11-26 15:08:55 +00:00
dan
2df026a549
Avoid splitting Failure-Detection test cases in wapptest.tcl.
...
FossilOrigin-Name: 654e6cf8ab493d48b1827bb8100d4e4366a8e889e647c233a9b1b1278a7133d0
2021-11-24 21:16:32 +00:00
dan
622bd63c33
Update Makefile.msc to support target "tcltest" in the same way as the autoconf build system.
...
FossilOrigin-Name: 0f131b92252afc95c8c2d160d4be9ac2a737a610ee355efcd819f1af3bae3c56
2021-11-24 11:33:01 +00:00
drh
b0906b6088
Changes a test pattern for RBU so that it works regardless of whether newer
...
TCL versions are used.
FossilOrigin-Name: 5a9921c92ade9e13c3e49c50325c96e3264f3ad352a187387a960783a68bc9d3
2021-11-23 22:28:09 +00:00
drh
7907d372bc
Fix a compiler warning in the dbserialize method of the TCL interface.
...
FossilOrigin-Name: ba71d030fef4cd4251dc882acc6897dbf9aaba498652900c491b082add87404f
2021-11-23 12:59:25 +00:00
dan
619a5f5572
Exclude two recently added tests in where.test from valgrind runs. They fail due to the subtly different handling of real numbers under valgrind.
...
FossilOrigin-Name: e842d2085b295ef1c927611f5d3b211fb6b513ca2676c074fe90331da81734eb
2021-11-23 11:34:43 +00:00
dan
70a05e9168
Omit wal mode tests in memdb1.test for builds and configurations that do not support wal mode.
...
FossilOrigin-Name: 0f13c0d9fd7757c6e0b845a285c0047d2c60293354335660d19d80ad799646fc
2021-11-22 16:50:41 +00:00
dan
b127d0fd2a
Omit wal mode tests in vacuum-into.test for builds and configurations that do not support wal mode.
...
FossilOrigin-Name: 65de17635468791678b9d205552a4faec2d6c3b7d330c559b6f81ab072254533
2021-11-22 16:48:42 +00:00
dan
c7b29b0ce7
Do not attempt to run the tests in alterfault.est with SQLITE_OMIT_ALTERTABLE builds.
...
FossilOrigin-Name: 6f6f31c7df6831af28a24e69f744beeade739bb7bbb0810d5bbe592e4cd75e3d
2021-11-22 16:43:53 +00:00
dan
42ac4c2e5f
Fix a typo in memdb1.test preventing tests from passing with -DSQLITE_DEFAULT_AUTOVACUUM=1 builds.
...
FossilOrigin-Name: eff4187c50790827d05bb28867cc6546196e7eee3b4c4de54b4e68bfb4e2830e
2021-11-22 16:27:36 +00:00
drh
b670fd5545
There are two possible error messages from stat-9.1, depending on
...
compile-time options. Adjust the test case to accept either one.
FossilOrigin-Name: 0f567b61072e214c40cae1441889f83622a975f429b41803dfbed687718731c8
2021-11-22 16:06:57 +00:00
drh
81258cc911
In fuzzcheck, improve the defense against long delays due to
...
rogue busy_timeout macros in fuzzer-generated scripts.
FossilOrigin-Name: 3024d7ca03541a6fe3d264fdc82dd49f8f6b51d2fbeec4dfc9c6dd72806b271a
2021-11-22 13:59:06 +00:00
drh
9f9bdf9345
Fix the build for SQLITE_OMIT_CTE.
...
FossilOrigin-Name: d7ef96bae459f800241483fe8784552d18ee7f92f408f6453ac687de5530bbb9
2021-11-22 13:35:40 +00:00
drh
156d44104a
In the previous check-in, do not overwrite the SQLITE_CORRUPT signal with
...
an SQLITE_OK before exiting fts3auxNextMethod().
FossilOrigin-Name: 396688ae5c10b9e7df1c76a3c6f548abf7a7ddad50c25fb23e194201dbb2e857
2021-11-22 12:59:44 +00:00
dan
bb0c54283d
Fix a crash in the fts3aux code that could occur handling corrupt records.
...
FossilOrigin-Name: cdcd65b89ecffd380483404f5b1379beffd7ff107acaa5bc1185651cfacaa220
2021-11-22 08:12:14 +00:00
drh
6f991147bd
New test cases for STRICT and NOT NULL in PRIMARY KEY.
...
FossilOrigin-Name: 0eafbc2f31b83f48833b19894ff3252a63c319ff501506ef9f744cca813a3a24
2021-11-20 13:30:03 +00:00
drh
a51e60079f
Small performance increase and size reduction for sqlite3ExprCompare().
...
This change also handles some corner cases without the need for ALWAYS().
FossilOrigin-Name: d814ba6effc7c5b021ff625b57371627f3ee326687c508da99f78bc164386b7e
2021-11-19 19:11:58 +00:00
dan
d9137e3be0
Fix a benign data race in os_unix.c that might trouble tsan and similar tools.
...
FossilOrigin-Name: 95806ac1dabe4598170061d903ae30f09bafac149ff6696963a7e056ac846cdb
2021-11-19 14:02:43 +00:00