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

Only do the cell overread checks in sqlite3BtreeInitPage if

SQLITE_OVERREAD_CHECK is defined at compile-time. (CVS 6733)

FossilOrigin-Name: 49f544ebae8dc3cf7cf6189536c56ebb7d258a86
This commit is contained in:
drh
2009-06-09 10:37:03 +00:00
parent 6067a9bbfe
commit f061be9c6f
3 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.621 2009/06/09 09:41:00 danielk1977 Exp $
** $Id: btree.c,v 1.622 2009/06/09 10:37:04 drh Exp $
**
** This file implements a external (disk-based) database using BTrees.
** See the header comment on "btreeInt.h" for additional information.
@@ -1153,7 +1153,7 @@ int sqlite3BtreeInitPage(MemPage *pPage){
** past the end of a page boundary and causes SQLITE_CORRUPT to be
** returned if it does.
*/
#if defined(SQLITE_OVERREAD_CHECK) || 1
#if defined(SQLITE_OVERREAD_CHECK)
{
int iCellFirst; /* First allowable cell index */
int iCellLast; /* Last possible cell index */