1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

If the page size is wrong on the page1 content inside a WAL file, then

running VACUUM could trigger an assert().  This check-in changes that assert()
into a branch that returns SQLITE_CORRUPT.
[forum:/info/4ef9b37d74d2d2e8|Forum post 4ef9b37d74d2d2e8]

FossilOrigin-Name: 0512f82a2cde7447cb348d9fd620f39f2f0e359141903cde20f7ba30b5d34af3
This commit is contained in:
drh
2023-05-03 06:48:08 +00:00
parent 681307dc80
commit ce2aa8bebe
3 changed files with 8 additions and 8 deletions

View File

@@ -3710,7 +3710,7 @@ int sqlite3WalFrames(
if( rc ) return rc;
}
}
assert( (int)pWal->szPage==szPage );
if( (int)pWal->szPage!=szPage ) return SQLITE_CORRUPT_BKPT;
/* Setup information needed to write frames into the WAL */
w.pWal = pWal;