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

In editPage(), if an attempt is made to edit an empty 64KB page, then take

the slow path through rebuildPage(), in order to maintain strict invariants
in the editPage() code.
[forum:/forumpost/0f37727c0d|Forum post 0f37727c0d].

FossilOrigin-Name: a865e574e510c1ca192d0bd5293fb583def90f7ed086af2c89ca856ce93d115b
This commit is contained in:
drh
2023-05-08 13:38:14 +00:00
parent c42bbfc550
commit addc7e0e5b
3 changed files with 8 additions and 8 deletions

View File

@@ -7696,7 +7696,7 @@ static int editPage(
nCell -= nTail;
}
pData = &aData[get2byteNotZero(&aData[hdr+5])];
pData = &aData[get2byte(&aData[hdr+5])];
if( pData<pBegin ) goto editpage_fail;
if( NEVER(pData>pPg->aDataEnd) ) goto editpage_fail;