]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix an error in the previous commit found by corrupt7.test. (CVS 5204)
authordanielk1977 <danielk1977@noemail.net>
Wed, 11 Jun 2008 18:27:55 +0000 (18:27 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Wed, 11 Jun 2008 18:27:55 +0000 (18:27 +0000)
FossilOrigin-Name: afcfba0a8ac46e1d86a0fa2f1fbaeefe8ef10f7d

manifest
manifest.uuid
src/btree.c

index 9adfb208b27ce86ffe8f6d896f9bcf2ab4946068..d14c2755d1c6c1a10415444fd490943fdf1077e2 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Check\sthat\sthe\soffsets\sin\sthe\scell-offset\sarray\sof\sa\sb-tree\spage\sare\swithin\srange\sin\ssqlite3BtreeInit().\s(CVS\s5203)
-D 2008-06-11T18:15:30
+C Fix\san\serror\sin\sthe\sprevious\scommit\sfound\sby\scorrupt7.test.\s(CVS\s5204)
+D 2008-06-11T18:27:55
 F Makefile.arm-wince-mingw32ce-gcc ac5f7b2cef0cd850d6f755ba6ee4ab961b1fadf7
 F Makefile.in ce92ea8dc7adfb743757794f51c10d1b0d9c55e4
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -96,7 +96,7 @@ F src/attach.c 496cc628b2e8c4d8db99d7c136761fcbebd8420b
 F src/auth.c c8b2ab5c8bad4bd90ed7c294694f48269162c627
 F src/bitvec.c ab50c4b8c6a899dae499f5a805eebe4223c78269
 F src/btmutex.c 483ced3c52205b04b97df69161fadbf87f4f1ea2
-F src/btree.c 48290915e2202be02c65c68ef72ad4a7312ad98a
+F src/btree.c 1f4a3f8307b04c98ce250705b95555f820e857b2
 F src/btree.h b1bd7e0b8c2e33658aaf447cb0d1d94f74664b6b
 F src/btreeInt.h dc04ee33d8eb84714b2acdf81336fbbf6e764530
 F src/build.c a52d9d51341444a2131e3431608f245db80d9591
@@ -593,7 +593,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P c569a6cf664e9a8095f616327719392fb8186d37
-R eefa72e5e202422710521462491b2bb8
+P 82f27e28eeb6902b75e21afd8eb170465f680d7b
+R c346a4a7878a0b007ff43abb39115b5b
 U danielk1977
-Z 70d5f41fb2c71a3e95c0665ed6c5e363
+Z dd9fd2343fb83323594f7981326120ef
index 236a3945ed87c4b109880fabe91642aaa5ac949d..72c928844edd53dfc7d3b22ebb07c250e0570ef3 100644 (file)
@@ -1 +1 @@
-82f27e28eeb6902b75e21afd8eb170465f680d7b
\ No newline at end of file
+afcfba0a8ac46e1d86a0fa2f1fbaeefe8ef10f7d
\ No newline at end of file
index 26298257cf1634b301c661e75e8b6d195bbd0d17..9d7c2266bdb51f58251df3087e484772d0b0047d 100644 (file)
@@ -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 ){