/ Check-in [3a9f0762]
Login

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

Overview
Comment:Fix an off-by-one error in test function fts5_decode().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3a9f076250d9559d8ea94ba44095ba3ddbc5542d
User & Date: dan 2015-09-29 12:19:51
Context
2015-09-29
16:41
Ensure that the xSavepoint() virtual table method is correctly invoked if there are already open savepoints (or statement transactions) the first time a virtual table is written within a transaction. check-in: 77948b5e user: dan tags: trunk
12:19
Fix an off-by-one error in test function fts5_decode(). check-in: 3a9f0762 user: dan tags: trunk
2015-09-28
17:05
Extra information provided by .wheretrace on input flags to the query planner and on the result of sqlite3WhereOkOnePass(). check-in: c5566bb3 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5_index.c.

  5357   5357       int iRowidOff = 0;
  5358   5358       int iOff;
  5359   5359       int nDoclist;
  5360   5360   
  5361   5361       memset(&term, 0, sizeof(Fts5Buffer));
  5362   5362   
  5363   5363       if( n<4 ){
  5364         -      sqlite3Fts5BufferSet(&rc, &s, 8, (const u8*)"corrupt");
         5364  +      sqlite3Fts5BufferSet(&rc, &s, 7, (const u8*)"corrupt");
  5365   5365         goto decode_out;
  5366   5366       }else{
  5367   5367         iRowidOff = fts5GetU16(&a[0]);
  5368   5368         iPgidxOff = szLeaf = fts5GetU16(&a[2]);
  5369   5369         if( iPgidxOff<n ){
  5370   5370           fts5GetVarint32(&a[iPgidxOff], iTermOff);
  5371   5371         }