/ Check-in [e0994e99]
Login

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

Overview
Comment:Fix a bug in the custom in-memory VFS used by fuzzcheck. This bug masks other bugs that should have caused some existing fuzzdata7.db entries to fail, and so this fix is initially on a branch until those other bugs can be repaired.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fuzzcheck-fix
Files: files | file ages | folders
SHA3-256: e0994e99955cf11f23dba029b5ed7f150f467887558848d5f03510e2fb5855f9
User & Date: drh 2018-12-14 02:29:56
Context
2018-12-14
03:14
Detect when an attempt is made to write to a pointer map page that is also being used as a btree page and report corruption. Closed-Leaf check-in: 3036fd71 user: drh tags: fuzzcheck-fix
02:29
Fix a bug in the custom in-memory VFS used by fuzzcheck. This bug masks other bugs that should have caused some existing fuzzdata7.db entries to fail, and so this fix is initially on a branch until those other bugs can be repaired. check-in: e0994e99 user: drh tags: fuzzcheck-fix
2018-12-13
22:58
Fix the dbtotxt decoder in the CLI so that it ignores excess bytes. check-in: 18740bd4 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/fuzzcheck.c.

   443    443     if( iOfst<0 || iOfst>=pVFile->sz ){
   444    444       memset(pData, 0, iAmt);
   445    445       return SQLITE_IOERR_SHORT_READ;
   446    446     }
   447    447     if( iOfst+iAmt>pVFile->sz ){
   448    448       memset(pData, 0, iAmt);
   449    449       iAmt = (int)(pVFile->sz - iOfst);
   450         -    memcpy(pData, pVFile->a, iAmt);
          450  +    memcpy(pData, pVFile->a + iOfst, iAmt);
   451    451       return SQLITE_IOERR_SHORT_READ;
   452    452     }
   453    453     memcpy(pData, pVFile->a + iOfst, iAmt);
   454    454     return SQLITE_OK;
   455    455   }
   456    456   static int inmemWrite(
   457    457     sqlite3_file *pFile,   /* Write to this file */