1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

The previous check-in was a little two aggressive about skipping the

initialization of entries in the CellArray.ixNx array.  Fixed here.

FossilOrigin-Name: 1b6d1fbcdecf14bc79dc7b5df50e585d2fcc1484a9987b863c190e8f7ba2c39f
This commit is contained in:
drh
2024-05-27 19:52:24 +00:00
parent d081df0a5d
commit eeb8506c18
3 changed files with 9 additions and 8 deletions

View File

@ -7937,6 +7937,7 @@ static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){
b.szCell = &szCell;
b.apEnd[0] = pPage->aDataEnd;
b.ixNx[0] = 2;
b.ixNx[NB*2-1] = 0x7fffffff;
rc = rebuildPage(&b, 0, 1, pNew);
if( NEVER(rc) ){
releasePage(pNew);
@ -8173,7 +8174,7 @@ static int balance_nonroot(
memset(abDone, 0, sizeof(abDone));
assert( sizeof(b) - sizeof(b.ixNx) == offsetof(CellArray,ixNx) );
memset(&b, 0, sizeof(b)-sizeof(b.ixNx));
memset(&b, 0, sizeof(b)-sizeof(b.ixNx[0]));
b.ixNx[NB*2-1] = 0x7fffffff;
pBt = pParent->pBt;
assert( sqlite3_mutex_held(pBt->mutex) );