mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix an error in the previous commit found by corrupt7.test. (CVS 5204)
FossilOrigin-Name: afcfba0a8ac46e1d86a0fa2f1fbaeefe8ef10f7d
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.462 2008/06/11 18:15:30 danielk1977 Exp $
|
||||
** $Id: btree.c,v 1.463 2008/06/11 18:27:55 danielk1977 Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** See the header comment on "btreeInt.h" for additional information.
|
||||
@@ -965,7 +965,7 @@ int sqlite3BtreeInitPage(
|
||||
}
|
||||
|
||||
/* Check that all the offsets in the cell offset array are within range. */
|
||||
mask = ~(((u8)(pBt->pageSize>>7))-1);
|
||||
mask = ~(((u8)(pBt->pageSize>>8))-1);
|
||||
pEnd = &data[cellOffset + pPage->nCell*2];
|
||||
for(pOff=&data[cellOffset]; pOff!=pEnd && !((*pOff)&mask); pOff+=2);
|
||||
if( pOff!=pEnd ){
|
||||
|
Reference in New Issue
Block a user