Skip to content

Commit 2aceca1

Browse files
nodejs-github-bottargos
authored andcommitted
deps: update sqlite to 3.49.1
PR-URL: #57178 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
1 parent aa81785 commit 2aceca1

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

deps/sqlite/sqlite3.c

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
** This file is an amalgamation of many separate C source files from SQLite
3-
** version 3.49.0. By combining all the individual C code files into this
3+
** version 3.49.1. By combining all the individual C code files into this
44
** single large file, the entire code can be compiled as a single translation
55
** unit. This allows many compilers to do optimizations that would not be
66
** possible if the files were compiled separately. Performance improvements
@@ -18,7 +18,7 @@
1818
** separate file. This file contains only code for the core SQLite library.
1919
**
2020
** The content in this amalgamation comes from Fossil check-in
21-
** 4a7dd425dc2a0e5082a9049c9b4a9d4f199a with changes in files:
21+
** 873d4e274b4988d260ba8354a9718324a1c2 with changes in files:
2222
**
2323
**
2424
*/
@@ -465,9 +465,9 @@ extern "C" {
465465
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
466466
** [sqlite_version()] and [sqlite_source_id()].
467467
*/
468-
#define SQLITE_VERSION "3.49.0"
469-
#define SQLITE_VERSION_NUMBER 3049000
470-
#define SQLITE_SOURCE_ID "2025-02-06 11:55:18 4a7dd425dc2a0e5082a9049c9b4a9d4f199a71583d014c24b4cfe276c5a77cde"
468+
#define SQLITE_VERSION "3.49.1"
469+
#define SQLITE_VERSION_NUMBER 3049001
470+
#define SQLITE_SOURCE_ID "2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70"
471471

472472
/*
473473
** CAPI3REF: Run-Time Library Version Numbers
@@ -131067,7 +131067,7 @@ static void concatFuncCore(
131067131067
for(i=0; i<argc; i++){
131068131068
n += sqlite3_value_bytes(argv[i]);
131069131069
}
131070-
n += (argc-1)*nSep;
131070+
n += (argc-1)*(i64)nSep;
131071131071
z = sqlite3_malloc64(n+1);
131072131072
if( z==0 ){
131073131073
sqlite3_result_error_nomem(context);
@@ -182305,7 +182305,7 @@ SQLITE_API int sqlite3_config(int op, ...){
182305182305
static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
182306182306
#ifndef SQLITE_OMIT_LOOKASIDE
182307182307
void *pStart;
182308-
sqlite3_int64 szAlloc = sz*(sqlite3_int64)cnt;
182308+
sqlite3_int64 szAlloc;
182309182309
int nBig; /* Number of full-size slots */
182310182310
int nSm; /* Number smaller LOOKASIDE_SMALL-byte slots */
182311182311

@@ -182324,7 +182324,9 @@ static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
182324182324
*/
182325182325
sz = ROUNDDOWN8(sz); /* IMP: R-33038-09382 */
182326182326
if( sz<=(int)sizeof(LookasideSlot*) ) sz = 0;
182327+
if( sz>65528 ) sz = 65528;
182327182328
if( cnt<0 ) cnt = 0;
182329+
szAlloc = (i64)sz*(i64)cnt;
182328182330
if( sz==0 || cnt==0 ){
182329182331
sz = 0;
182330182332
pStart = 0;
@@ -182339,10 +182341,10 @@ static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
182339182341
#ifndef SQLITE_OMIT_TWOSIZE_LOOKASIDE
182340182342
if( sz>=LOOKASIDE_SMALL*3 ){
182341182343
nBig = szAlloc/(3*LOOKASIDE_SMALL+sz);
182342-
nSm = (szAlloc - sz*nBig)/LOOKASIDE_SMALL;
182344+
nSm = (szAlloc - (i64)sz*(i64)nBig)/LOOKASIDE_SMALL;
182343182345
}else if( sz>=LOOKASIDE_SMALL*2 ){
182344182346
nBig = szAlloc/(LOOKASIDE_SMALL+sz);
182345-
nSm = (szAlloc - sz*nBig)/LOOKASIDE_SMALL;
182347+
nSm = (szAlloc - (i64)sz*(i64)nBig)/LOOKASIDE_SMALL;
182346182348
}else
182347182349
#endif /* SQLITE_OMIT_TWOSIZE_LOOKASIDE */
182348182350
if( sz>0 ){
@@ -255872,7 +255874,7 @@ static void fts5SourceIdFunc(
255872255874
){
255873255875
assert( nArg==0 );
255874255876
UNUSED_PARAM2(nArg, apUnused);
255875-
sqlite3_result_text(pCtx, "fts5: 2025-02-06 11:55:18 4a7dd425dc2a0e5082a9049c9b4a9d4f199a71583d014c24b4cfe276c5a77cde", -1, SQLITE_TRANSIENT);
255877+
sqlite3_result_text(pCtx, "fts5: 2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70", -1, SQLITE_TRANSIENT);
255876255878
}
255877255879

255878255880
/*

deps/sqlite/sqlite3.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ extern "C" {
146146
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
147147
** [sqlite_version()] and [sqlite_source_id()].
148148
*/
149-
#define SQLITE_VERSION "3.49.0"
150-
#define SQLITE_VERSION_NUMBER 3049000
151-
#define SQLITE_SOURCE_ID "2025-02-06 11:55:18 4a7dd425dc2a0e5082a9049c9b4a9d4f199a71583d014c24b4cfe276c5a77cde"
149+
#define SQLITE_VERSION "3.49.1"
150+
#define SQLITE_VERSION_NUMBER 3049001
151+
#define SQLITE_SOURCE_ID "2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70"
152152

153153
/*
154154
** CAPI3REF: Run-Time Library Version Numbers

0 commit comments

Comments
 (0)