1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix the check-in at [41474548ef3f7454] so that it computes the pointer in

time for error checking at the end of the routine in the case of a non-OOM
error.

FossilOrigin-Name: 13d2fed760e7d0def573c56b7181f45622b0ed78d61952a6de901f96949d074e
This commit is contained in:
drh
2020-08-08 20:15:16 +00:00
parent 07066d90f6
commit 8afc09dea3
3 changed files with 1886 additions and 9 deletions

1891
manifest

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1 @@
b412d1d175fde9c6402b6fda7c73ac2db2471f2c9416d5c5073549732dea6d98 13d2fed760e7d0def573c56b7181f45622b0ed78d61952a6de901f96949d074e

View File

@@ -2497,9 +2497,9 @@ static int pager_delsuper(Pager *pPager, const char *zSuper){
}else{ }else{
const int flags = (SQLITE_OPEN_READONLY|SQLITE_OPEN_SUPER_JOURNAL); const int flags = (SQLITE_OPEN_READONLY|SQLITE_OPEN_SUPER_JOURNAL);
rc = sqlite3OsOpen(pVfs, zSuper, pSuper, flags, 0); rc = sqlite3OsOpen(pVfs, zSuper, pSuper, flags, 0);
pJournal = (sqlite3_file *)(((u8 *)pSuper) + pVfs->szOsFile);
} }
if( rc!=SQLITE_OK ) goto delsuper_out; if( rc!=SQLITE_OK ) goto delsuper_out;
pJournal = (sqlite3_file *)(((u8 *)pSuper) + pVfs->szOsFile);
/* Load the entire super-journal file into space obtained from /* Load the entire super-journal file into space obtained from
** sqlite3_malloc() and pointed to by zSuperJournal. Also obtain ** sqlite3_malloc() and pointed to by zSuperJournal. Also obtain