/ Check-in [bd8b977a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Test case macros to show that the previous check-in is well tested.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | extra-testcase-macros
Files: files | file ages | folders
SHA1:bd8b977abbc3eacdf0dd5c360e85e14db9456b2a
User & Date: drh 2017-01-12 15:19:53
Context
2017-01-12
15:19
Test case macros to show that the previous check-in is well tested. Leaf check-in: bd8b977a user: drh tags: extra-testcase-macros
15:11
Improved detection of cells that extend into the reserved space at the end of the page while adjusting overflow page pointers during autovacuum. check-in: 8097712c user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  3353   3353   
  3354   3354       for(i=0; i<nCell; i++){
  3355   3355         u8 *pCell = findCell(pPage, i);
  3356   3356         if( eType==PTRMAP_OVERFLOW1 ){
  3357   3357           CellInfo info;
  3358   3358           pPage->xParseCell(pPage, pCell, &info);
  3359   3359           if( info.nLocal<info.nPayload ){
         3360  +          testcase( pCell+info.nSize == pPage->aData+pPage->pBt->usableSize );
         3361  +          testcase( pCell+info.nSize == pPage->aData+pPage->pBt->usableSize+1 );
  3360   3362             if( pCell+info.nSize > pPage->aData+pPage->pBt->usableSize ){
  3361   3363               return SQLITE_CORRUPT_BKPT;
  3362   3364             }
  3363   3365             if( iFrom==get4byte(pCell+info.nSize-4) ){
  3364   3366               put4byte(pCell+info.nSize-4, iTo);
  3365   3367               break;
  3366   3368             }