1
1
/******************************************************************************
2
2
** 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
4
4
** single large file, the entire code can be compiled as a single translation
5
5
** unit. This allows many compilers to do optimizations that would not be
6
6
** possible if the files were compiled separately. Performance improvements
18
18
** separate file. This file contains only code for the core SQLite library.
19
19
**
20
20
** The content in this amalgamation comes from Fossil check-in
21
- ** 4a7dd425dc2a0e5082a9049c9b4a9d4f199a with changes in files:
21
+ ** 873d4e274b4988d260ba8354a9718324a1c2 with changes in files:
22
22
**
23
23
**
24
24
*/
@@ -465,9 +465,9 @@ extern "C" {
465
465
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
466
466
** [sqlite_version()] and [sqlite_source_id()].
467
467
*/
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 "
471
471
472
472
/*
473
473
** CAPI3REF: Run-Time Library Version Numbers
@@ -131067,7 +131067,7 @@ static void concatFuncCore(
131067
131067
for(i=0; i<argc; i++){
131068
131068
n += sqlite3_value_bytes(argv[i]);
131069
131069
}
131070
- n += (argc-1)*nSep;
131070
+ n += (argc-1)*(i64) nSep;
131071
131071
z = sqlite3_malloc64(n+1);
131072
131072
if( z==0 ){
131073
131073
sqlite3_result_error_nomem(context);
@@ -182305,7 +182305,7 @@ SQLITE_API int sqlite3_config(int op, ...){
182305
182305
static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
182306
182306
#ifndef SQLITE_OMIT_LOOKASIDE
182307
182307
void *pStart;
182308
- sqlite3_int64 szAlloc = sz*(sqlite3_int64)cnt ;
182308
+ sqlite3_int64 szAlloc;
182309
182309
int nBig; /* Number of full-size slots */
182310
182310
int nSm; /* Number smaller LOOKASIDE_SMALL-byte slots */
182311
182311
@@ -182324,7 +182324,9 @@ static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
182324
182324
*/
182325
182325
sz = ROUNDDOWN8(sz); /* IMP: R-33038-09382 */
182326
182326
if( sz<=(int)sizeof(LookasideSlot*) ) sz = 0;
182327
+ if( sz>65528 ) sz = 65528;
182327
182328
if( cnt<0 ) cnt = 0;
182329
+ szAlloc = (i64)sz*(i64)cnt;
182328
182330
if( sz==0 || cnt==0 ){
182329
182331
sz = 0;
182330
182332
pStart = 0;
@@ -182339,10 +182341,10 @@ static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
182339
182341
#ifndef SQLITE_OMIT_TWOSIZE_LOOKASIDE
182340
182342
if( sz>=LOOKASIDE_SMALL*3 ){
182341
182343
nBig = szAlloc/(3*LOOKASIDE_SMALL+sz);
182342
- nSm = (szAlloc - sz*nBig)/LOOKASIDE_SMALL;
182344
+ nSm = (szAlloc - (i64) sz*(i64) nBig)/LOOKASIDE_SMALL;
182343
182345
}else if( sz>=LOOKASIDE_SMALL*2 ){
182344
182346
nBig = szAlloc/(LOOKASIDE_SMALL+sz);
182345
- nSm = (szAlloc - sz*nBig)/LOOKASIDE_SMALL;
182347
+ nSm = (szAlloc - (i64) sz*(i64) nBig)/LOOKASIDE_SMALL;
182346
182348
}else
182347
182349
#endif /* SQLITE_OMIT_TWOSIZE_LOOKASIDE */
182348
182350
if( sz>0 ){
@@ -255872,7 +255874,7 @@ static void fts5SourceIdFunc(
255872
255874
){
255873
255875
assert( nArg==0 );
255874
255876
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);
255876
255878
}
255877
255879
255878
255880
/*
0 commit comments