master
Fix a problem in fts5 secure-delete code that could lead to a buffer overrun when dealing with a strategically corrupted database. Problem reported by YEONBA.
Update fts5 scan costs to take into account that a prefix query combined with a rowid equality constraint is still quite expensive.
Fix a problem in the ext/fts5/extract_api_docs.tcl script.
Fix an inaccuracy in the documentation in fts5.h.
Fix the change on this branch so that it works with amalgamation builds.
Clamp the nToken parameter to the fts5 snippet() function between 0 and 64. It has always been documented this way, but not previously implemented. Report [bugs:/info/2026-06-08T08:29:00Z | 2026-06-08T08:29:00Z].
Use only 64-bit memory allocation in FTS5. Fix for UAF reported by Zijie Zhao.
Fix a problem that could cause fts5 to return incorrect answers when performing prefix queries on tokens with synonyms. Bug [bugs:/info/2026-06-14T11:11:06Z | 2026-06-14T11:11:06Z].
Avoid a possible integer overflow when fts5 tokenizes a very large document. Only possible with non-standard builds that use large values of SQLITE_MAX_LENGTH. Bug [bugs:/info/2026-06-09T05:27:16Z | 2026-06-09T05:27:16Z].
Fix an OOB read caused by passing an out-of-range phrase number to fts5 auxiliary API xPhraseFirstColumn() in detail=columns mode.
Fix an fts5 problem causing attempts to create locale=1 tables with more than 115 columns to fail. Bug [bugs:/info/2026-06-19T05:19:08Z | 2026-06-19T05:19:08Z].
Update preprocessor logic in test file fts5_tcl.c to use intptr_t when available.
Remove unnecessary "www." prefixes on domain names in URLs.
Silently ignore nested porter tokenizers in FTS5. Having nested porter tokenizers is pointless, but it does use stack space unnecessarily. [bugs:/forumpost/a7766198f1|Bug report a7766198f1].
Fix another problem with corrupt databases in fts5.
Add the "^" syntax from fts3/4 to fts5.
Improve the performance of the fts5 porter tokenizer implementation.