Skip to content

Update SQLite to version 3.53.4 - #99

Merged
sbooth merged 1 commit into
mainfrom
sqlite-3.53.4
Jul 26, 2026
Merged

Update SQLite to version 3.53.4#99
sbooth merged 1 commit into
mainfrom
sqlite-3.53.4

Conversation

@sbooth

@sbooth sbooth commented Jul 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 26, 2026 21:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the vendored SQLite sources used by CSQLite to upstream SQLite 3.53.4, keeping the amalgamation and public header in sync and incorporating upstream fixes (notably around integer/float conversions, JSONB parsing safety, RBU/session handling, and FTS5 leaf-page handling).

Changes:

  • Bump SQLite version identifiers and source IDs to 3.53.4 in both the amalgamation (sqlite3.c) and public header (sqlite3.h).
  • Pull in upstream correctness/safety fixes across RBU/session, JSONB, and FTS5 code paths within the amalgamation.
  • Restrict seriesRealToI64() to file scope in series.c (no external linkage).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Sources/CSQLite/sqlite3.c Updates the SQLite amalgamation to 3.53.4 and brings in upstream fixes (RBU/session/FTS5/JSONB/etc.).
Sources/CSQLite/series.c Makes seriesRealToI64() static (file-local) as part of the upstream update.
Sources/CSQLite/include/sqlite3.h Updates the public SQLite version macros/source ID to 3.53.4 to match the amalgamation.
Comments suppressed due to low confidence (1)

Sources/CSQLite/sqlite3.c:226945

  • In rbuDeltaApply(), the copy-command delimiter check no longer reports an error when the delta ends immediately after the offset integer (lenDelta==0). The subsequent unconditional zDelta++; lenDelta--; then advances past the end of the buffer and can lead to out-of-bounds access. The check should treat lenDelta<=0 as an error before attempting to read/skip the delimiter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sources/CSQLite/sqlite3.c
Comment on lines 228978 to +228985
pUp->zMask = (char*)&pUp[1];
memcpy(pUp->zMask, zMask, pIter->nTblCol);
pUp->pNext = pIter->pRbuUpdate;
pIter->pRbuUpdate = pUp;

if( zSet ){
const char *zPrefix = "";

assert( p->rc==SQLITE_OK );
memcpy(pUp->zMask, zMask, pIter->nTblCol);
@sbooth
sbooth merged commit 76ffb2a into main Jul 26, 2026
2 checks passed
@sbooth
sbooth deleted the sqlite-3.53.4 branch July 26, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants