aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | | Rename the TF_StatsUsed flag to TF_MaybeReanalyze, to more accuratelydrh2024-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | reflect its usage. No logic changes. FossilOrigin-Name: b4790da5e0d6f0f617e6c3a17fc2606842e41cab14339392abd335410fec0aa3
| * | | | Fix a bug in PRAGMA integrity_check introduced by enhancement (8a) indrh2024-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [https://sqlite.org/releaselog/3_42_0.html|release 3.42.0] and first reported by [forum:/forumpost/ee4f6fa5ab|forum post ee4f6fa5ab]. FossilOrigin-Name: 460353dfff8f2fb03f9c8666d0c367ec7be4cfa96dfcb0cea10f144d043223bb
| * | | | Changes to vtabCallConstructor() to avoid a harmless static analyzer warningdrh2024-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and to help prove that the UAF reported by [forum:/forumpost/cafbe582e8|forum post cafbe582e8] is a false-positive. FossilOrigin-Name: 4892440b93306e5a245f18c0d3d295d851e6712260e420016c0d70e12abf8901
| * | | | Add a new sqlite3FaultSim() call in the btree logic, for testing.drh2024-02-12
| | | | | | | | | | | | | | | FossilOrigin-Name: e0558f79b8184ea6741fb20b710dab854f5bdb71aa47d5a6701eeb7389540c8c
| * | | | Add support for the ".testctrl fault_install" dot-command in the CLI whendrh2024-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | launched with the --unsafe-testing option. FossilOrigin-Name: 5ba7fee1a9b49df82387e355d2ab7de58663d3fa824e50717608b27e0f7ac874
| * | | | If a term of an ORDER BY or GROUP BY contains an aggregate function or column,drh2024-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | then it is not an alias that needs to be resolved, so don't try to. This fixes a harmless assertion found by dbsqlfuzz. This yet another problem that orginated at check-in [6e6b3729e0549de0]. FossilOrigin-Name: d4ec2a5d2297cd9ead0a8768dcf003ea76c74d8d68d88c40f62363f484a4a4d3
| * | | | Improved AggInfo tracing in debug builds. No changes to deliverable code.drh2024-02-11
| | | | | | | | | | | | | | | FossilOrigin-Name: bb31f9c44794e02a46ed3edbcc96eb48c5870d3f82cb404586ded9a3efa7a859
| * | | | Further clarify sqlite3_exec() callback parameter lifetime.larrybr2024-02-10
| | | | | | | | | | | | | | | FossilOrigin-Name: 993a1a843177b19a9cb5598f57d1e05c01e1695f164faaa9ae22810ad4533eba
| * | | | Mention limited lifetime of string arrays passed to sqlite3_exec() callback.larrybr2024-02-08
| | | | | | | | | | | | | | | FossilOrigin-Name: 717f67f3189a59842f5c17a25e8db0e24ec4405886fc22ab6eeb3954fba5a964
| * | | | Fix an #endif (added in the wrong place by [8f4b1ceafe4a271b]) so thatdrh2024-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | the build works with SQLITE_OMIT_VIRTUAL_TABLE. FossilOrigin-Name: 7070924eebce1d089fde911dc0427ab8f3764d57ace24caff2b79954b42d1b51
| * | | | Turns out the branch is reachable, so back out the NEVER().drh2024-02-07
| | | | | | | | | | | | | | | FossilOrigin-Name: 0af36a3223d2dabda887830390a603ab4781baca7e2f1698ec6c5f2cf03faf04
| * | | | Detect and respond to an OOM on the jsonStringTerminate() call ofdrh2024-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | jsonReturnStringAsBlob() routine. FossilOrigin-Name: 881f814c09b6896a448a2360b0b43dc99592ea3a1d72ac359770cbb0a2c7d38a
| * | | | Slight change to OOM handling in JSON to catch a corner case found bydrh2024-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | dbsqlfuzz. FossilOrigin-Name: 6a2b3266c586d12b51e11fe63cda5881be9373207aa16671ab77f547830eb790
| * | | | Fix harmless compiler warnings seen with MSVC.mistachkin2024-02-04
| | | | | | | | | | | | | | | FossilOrigin-Name: e52c87420b072fa68d921eda66069542d50accbfaf1110ac4cc1543a4162200d
| * | | | More extensive use of SQLITE_CORRUPT_PGNO.drh2024-02-02
| | |_|/ | |/| | | | | | FossilOrigin-Name: 3838332cffb87f77a7c6b357066a59b9dc4f65ef4b3496767ad7ad7c14a77be2
| * | | Fix typo in vdbe.c comment. No changes to code.dan2024-02-02
| | | | | | | | | | | | FossilOrigin-Name: 62010ba488f65aec3c6bd17b05f64c5b3e885dee4221e6016c4eb1053e19284d
| * | | In PRAGMA integrity_check, defer running xIntegrity on virtual tables untildrh2024-02-01
| | | | | | | | | | | | | | | | | | | | after all ordinary tables have been checked. FossilOrigin-Name: 8f4b1ceafe4a271b23e17493a244a34c1732a3d35c5533c37394b9f3dc158435
| * | | Add tracing logic to the shared-cache locks in btree.c. The tracing isdrh2024-02-01
| | | | | | | | | | | | | | | | | | | | | | | | off by default. Enable by changing a single "#if 0" into "#if 1" and recompiling. Debugging code only - no changes to release builds. FossilOrigin-Name: f2b943f97ad7e47848ac6df3a3a1eba134b9e63c4a631f8eaf8bda77cc02ba7b
| * | | Add the test_oom_breakpoint() routine on debug builds, to serve as adrh2024-02-01
| | | | | | | | | | | | | | | | | | | | convenient breakpoint to intercept OOM conditions. FossilOrigin-Name: e45df7dcd6b5766d7593ee87e59dd422a217cce0a1a8d369c03144bb21859428
| * | | Replace an conditional assignment that was made obsolete by [d4c193f0b49f4950]drh2024-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with an assert(). The conditional was added by [d6fd512f50513ab7] as a fix for tickets [c36cdb4afd504dc1], [4051a7f931d9ba24], and [d6fd512f50513ab7] which means now [d4c193f0b49f4950] is the correct fix for those tickets. that check-in FossilOrigin-Name: 44b5524d522e749ad6bf76c94d754ff16c309c32439ec46802924663f64e8b09
| * | | Add NEVER() and ALWAYS() macros for the JSON5-control-character change.drh2024-01-31
| | | | | | | | | | | | | | | | | | | | | | | | Also fix an incorrect comparison used to determine if a buffer needed to be resized. FossilOrigin-Name: e3c0c0e686f3b7710f79587cf465b5aac52d8f2f2986a3de885a656f652cbfd3
| * | | Fix failure to detect unterminated string literals in json_valid() in thedrh2024-01-31
| | | | | | | | | | | | | | | | | | | | previous check-in. FossilOrigin-Name: 5d725644621cf640fb743d59ccf89dac777540410e67501eb00b83638c8c857f
| * | | Allow control characters in JSON5 string literals.drh2024-01-31
| | | | | | | | | | | | | | | | | | | | [forum:/forumpost/05182119f69c3a92|Forum thread 05182119f69c3a92]. FossilOrigin-Name: 34709c7cc910539e23a830ad8b589a97a88be25e924a59670c1017fb51447dad
| * | | Fix a memory allocation bug in the (debug-use-only) json_parse() SQL function.drh2024-01-31
| | | | | | | | | | | | FossilOrigin-Name: 32ce7dacf58bbf35cf70da8b03fa25f97fcea970edbc1f8aa12739ac4c8608fb
| * | | Detect malformed nested JSONB earlier and stop rendering to avoid longdrh2024-01-29
| | | | | | | | | | | | | | | | | | | | delays. FossilOrigin-Name: 72f3e1d0eca2b9ebd7c4b4cdccc6d7a0173b2fdb204cb1aa207917aedab6098a
| * | | When generated text JSON from JSONB, do not continue descending intodrh2024-01-29
| | | | | | | | | | | | | | | | | | | | | | | | nested structures after an error is seen. This avoids long loops and wait times. FossilOrigin-Name: 97666ec052ebaceab002874d7ca5c5e6883c3d04fb7d3992235a8c4c8d08407a
| * | | Consider an index for queries like "SELECT count(DISTINCT col) FROM ...", ↵dan2024-01-29
| | | | | | | | | | | | | | | | | | | | even if the index records are not smaller than the table records. FossilOrigin-Name: ad06868807a27f0c96fa5649ebd981e07909eb2c5e03781377c876fdec49abdc
| * | | Avoid a potential buffer overread when handling corrupt json blobs.dan2024-01-29
| | | | | | | | | | | | FossilOrigin-Name: 738473dc0ac353731080d0785cc7dc9810b564906c176916bd91d6cfbb1a7b18
| * | | When rendering JSONB back into text JSON, report an error if a zero-lengthdrh2024-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | integer or floating-point node is encountered. Otherwise, if the node occurs at the very end of the JSONB, the rendering logic might read one byte past the end of the initialized part of the BLOB byte array. OSSFuzz 66284. FossilOrigin-Name: b0eb279ea83c1c788c39fb90e178ec99fa4c782195c376a420c661fedf4545a7
| * | | Use __ppc__ instead of __POWERPC__ to identify 32-bit PowerPC processors.drh2024-01-28
| | | | | | | | | | | | | | | | | | | | [forum:/forumpost/34794846ce|Forum post 34794846ce]. FossilOrigin-Name: c974d9313b60591bcd554c3ec652a8040d382930e30778e6be8a875145b0b3da
| * | | Automatically disable the DISTINCT optimization during query planning if thedrh2024-01-28
| | | | | | | | | | | | | | | | | | | | | | | | ORDER BY clause exceeds 63 terms. dbsqlfuzz afd1d61fc27d14938a0d78a50970fa1e9fbfee58. FossilOrigin-Name: d4c193f0b49f4950b20c2f0e6aa037d2ed7d8c0b4687c14923b3a0d0d4a1b3fd
| * | | Apply the same fix found in [99057383acc8f920] to descending scans.drh2024-01-28
| | | | | | | | | | | | | | | | | | | | dbsqlfuzz afd1d61fc27d14938a0d78a50970fa1e9fbfee5. FossilOrigin-Name: e1d463c2d6e93e0ae0a60a05a79cd346bd07142de2fe631b370a9b946763b5d6
| * | | Use an alternative memory allocator for parser stack space that includesdrh2024-01-27
| | | | | | | | | | | | | | | | | | | | a call to sqlite3FaultSim() to facilitate testing. FossilOrigin-Name: 7c36d560ff4e8e1b3f8fad972ec7f07837e4fa4e6861fafde970ffccfda5a2f1
| * | | Omit the "parser stack overflow" error message, since it no longer occurs.drh2024-01-27
| | | | | | | | | | | | | | | | | | | | Replace it with an ordinary "out of memory". FossilOrigin-Name: 33f17ec24880937892d47a5a321c43785ca18e03dde28a9a0d50ae86edb29679
| * | | Experimental changes that prevent parser stack overflows by growing thedrh2024-01-26
| | | | | | | | | | | | | | | | | | | | parser stack with heap memory when it reaches its limit. FossilOrigin-Name: 3fd062905fc20507b7cfc97fa976ac5b57c5b68926bf9136bd5ea4265d2d6528
| * | | Add NEVER() to a branch that is no longer reachable.drh2024-01-24
| | | | | | | | | | | | FossilOrigin-Name: 9411337a7b3237366768fc708396da53d67a7a17b6cdc5c6f8932c5ab32217a9
| * | | In os_unix.c and os_win.c, do not allow xFetch() to return a pointer to a ↵dan2024-01-23
| | | | | | | | | | | | | | | | | | | | page buffer that is right at the end of the mapped region - if the database is corrupted in a specific way such a page buffer might be overread by several bytes. FossilOrigin-Name: 2684feac3bc9c5463604900d72710be861527614f4957224c74a16a3b3c702f5
| * | | Improved error message when a double-quoted identifier name cannot bedrh2024-01-23
| |\ \ \ | | | | | | | | | | | | | | | | | | | | resolved - ask the user if they intended to use a string literal. FossilOrigin-Name: efc5c3c5e6ae1f9f0be61ea4ce7b3e34f3dc318791c78e0f4bebebeaccf6951e
| | * | | Simplification of the error reporting logic.drh2024-01-22
| | | | | | | | | | | | | | | FossilOrigin-Name: 59eb9d29e796886db17a578b64e75fd2797aebf969cbeeda70ecf2fda378c98f
| | * | | Improved error message when a double-quoted string is used and it seems likelydrh2024-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | that the user wanted a single-quoted string literal. FossilOrigin-Name: 0a834bd81122b6e9c34c8253f9e45d53dab3274be28df60968366fa42237617b
| * | | | When a JSON input is a blob, but it looks like valid JSON when cast to text,drh2024-01-23
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | then accept it as valid JSON. This replicates a long-standing bug in the behavior of JSON routines, and thus avoids breaking legacy apps. [forum:/forumpost/012136abd5292b8d|Forum thread 012136abd5292b8d]. FossilOrigin-Name: e5dc81d5c7ee97866feb688dfa9b6fc225dabff2b020b9b96b49a8fea5640aec
| | * | | | Fix typo in the tag-20240123-a in a comment.drh2024-01-23
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 1f09541eb4203ccce476f6040ff134353850f22f07fb84f96a1d2c27b304a91b
| | * | | | If a BLOB looks like JSON when cast to text, then treat it as if it reallydrh2024-01-23
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | were JSON. This replicates a long-standing bug in the JSON processing routines, and thereby avoids breaking legacy. FossilOrigin-Name: d79a37690ce7ebb91df203170d73511da44546328043c2b3fe1786b2f0087093
| | * | | The -DSQLITE_JSON_BLOB_INPUT_BUG_COMPATIBLE compile-time option causes blobdrh2024-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inputs to JSON functions that are not JSONB to be processed as if they where text, immulating historical bugging behavior which some applications have come to rely upon. See [forum:/forumpost/012136abd5292b8d|forum thread 012136abd5292b8d] for discussion. FossilOrigin-Name: 65572223583d43e1d61ec029641f9d3ff340e68ecfba8342c8d1b0a91a680f2a
| * | | | Change the shell's --help flag to exit with code 0 instead of 1, per /forum ↵stephan2024-01-23
| |/ / / | | | | | | | | | | | | | | | | and /chat discussions. FossilOrigin-Name: df563a18578c5cf1aaecf5818c93967aaa70475598d3c099779622ac8911f926
| * | | Fix userauth so that it works together with SQLITE_OMIT_SHARED_CACHE.drh2024-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ([forum:/forumpost/0bfc5888a384d430|Forum post 0bfc5888a384d430]). However, also change to code to issue a deprecation warning whenever SQLITE_USER_AUTHENTICATION is used. FossilOrigin-Name: 249048b0cbc37058c229a785182e07b46029584aff9c385269b0b93503153476
| * | | Make CLI .dump immune to pragma reverse_unordered_selects, as reported in ↵larrybr2024-01-22
| | | | | | | | | | | | | | | | | | | | [forum:/forumpost/c42be01880e961eb|Forum thread "Missing ORDER BY in .dump?"] FossilOrigin-Name: 488caed24453fcef6fddcf40353e3b44cf37fb9d21e0ed743d39d60cbff020a7
| * | | Fix a harmless typo in a comment.drh2024-01-21
| | |/ | |/| | | | FossilOrigin-Name: 382a8f94bffef3e5f715116e363a30e21e2c53cd42d4959dfbe90c4624143e6d
| * | Ensure that values generated by DEFAULT clauses that specify real numbers ↵dan2024-01-20
| | | | | | | | | | | | | | | that can be expressed as 64-bit integers (e.g. -1234.0) are not silently converted to integers. FossilOrigin-Name: 298d6977285c71be917896bc875a8a26d985dcf0a74069b7c4d290e8ff0ac618
| * | Simplifications to the strftime() logic.drh2024-01-20
| | | | | | | | | FossilOrigin-Name: aaa5a044d8a4942278eb4269fa8c7252f9f1dc161408e618e7c97c55a12283ff