Skip to content

Commit d83d1c0

Browse files
authored
Update to sqlite 3.51.2 (#11)
* Update to sqlite 3.51.2 Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com> --------- Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
1 parent 63462c9 commit d83d1c0

7 files changed

Lines changed: 142 additions & 65 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os:
26-
- macos-13
26+
- macos-15-intel
2727
- ubuntu-22.04
2828
- windows-latest
2929
host:
@@ -66,6 +66,7 @@ jobs:
6666
with:
6767
node-version: ${{ matrix.node }}
6868
architecture: ${{ matrix.host }}
69+
scope: '@appthreat'
6970
- name: Add yarn
7071
run: npm install -g yarn
7172
- name: Set up Python
@@ -128,11 +129,7 @@ jobs:
128129
if: startsWith(github.ref, 'refs/tags/')
129130
- name: Publish
130131
run: |
131-
npm config set //registry.npmjs.org/:_authToken=$NPMJS_AUTH_TOKEN
132-
npm publish --provenance --access=public --@appthreat:registry='https://registry.npmjs.org'
133-
env:
134-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135-
NPMJS_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
132+
npm publish --provenance --access=public
136133
if: matrix.node == 24 && matrix.os == 'ubuntu-22.04' && startsWith(github.ref, 'refs/tags/')
137134
build-qemu:
138135
runs-on: ubuntu-24.04-arm

deps/common-sqlite.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
'variables': {
3-
'sqlite_version%':'3510000',
3+
'sqlite_version%':'3510200',
44
"toolset%":'',
55
},
66
'target_defaults': {
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7782,6 +7782,7 @@ static int fileStat(
77827782
b1[sz] = 0;
77837783
rc = _wstat(b1, pStatBuf);
77847784
if( rc==0 ) statTimesToUtc(zPath, pStatBuf);
7785+
sqlite3_free(b1);
77857786
return rc;
77867787
#else
77877788
return stat(zPath, pStatBuf);
@@ -10653,7 +10654,7 @@ static int zipfileGetEntry(
1065310654
);
1065410655
}else{
1065510656
aRead = (u8*)&aBlob[iOff + ZIPFILE_CDS_FIXED_SZ];
10656-
if( (iOff + ZIPFILE_LFH_FIXED_SZ + nFile + nExtra)>nBlob ){
10657+
if( (iOff + ZIPFILE_CDS_FIXED_SZ + nFile + nExtra)>nBlob ){
1065710658
rc = zipfileCorrupt(pzErr);
1065810659
}
1065910660
}
@@ -14944,6 +14945,7 @@ static char *intckMprintf(sqlite3_intck *p, const char *zFmt, ...){
1494414945
sqlite3_free(zRet);
1494514946
zRet = 0;
1494614947
}
14948+
va_end(ap);
1494714949
return zRet;
1494814950
}
1494914951

@@ -29053,6 +29055,7 @@ static int do_meta_command(char *zLine, ShellState *p){
2905329055
}
2905429056
p->showHeader = savedShowHeader;
2905529057
p->shellFlgs = savedShellFlags;
29058+
rc = p->nErr>0;
2905629059
}else
2905729060

2905829061
if( c=='e' && cli_strncmp(azArg[0], "echo", n)==0 ){
@@ -33598,7 +33601,8 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
3359833601
if( nCmd>0 ){
3359933602
sqlite3_fprintf(stderr,"Error: cannot mix regular SQL or dot-commands"
3360033603
" with \"%s\"\n", z);
33601-
return 1;
33604+
rc = 1;
33605+
goto shell_main_exit;
3360233606
}
3360333607
open_db(&data, OPEN_DB_ZIPFILE);
3360433608
if( z[2] ){

0 commit comments

Comments
 (0)