/ Check-in [f158c048]
Login

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

Overview
Comment:Fix an assert() failure in fts5 that could occur when processing a corrupt database.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f158c048be1dc7c80d38787a20495caa55b86416967efd57f4888548d42b4819
User & Date: dan 2019-05-13 11:52:19
Context
2019-05-14
00:43
Disable index seek optimizations on REINDEX when the order of primary keys in the index differs from the main table. Fix for ticket [bba7b69f9849b5bf11b4]. check-in: f7aadfab user: drh tags: trunk
2019-05-13
11:52
Fix an assert() failure in fts5 that could occur when processing a corrupt database. check-in: f158c048 user: dan tags: trunk
2019-05-11
19:36
A new implementation for the sqlite3ExprImpliesExpr() theorem prover that does a better job of answering TRUE to "(NOT A) OR B" when B is a NOT NULL expression. check-in: b3413197 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5_buffer.c.

   182    182         if( iVal==0 ){
   183    183           *pi = i;
   184    184           return 0;
   185    185         }
   186    186         fts5FastGetVarint32(a, i, iVal);
   187    187         iOff = ((i64)iVal) << 32;
   188    188         fts5FastGetVarint32(a, i, iVal);
          189  +      if( iVal<2 ){
          190  +        /* This is a corrupt record. So stop parsing it here. */
          191  +        *piOff = -1;
          192  +        return 1;
          193  +      }
   189    194       }
   190    195       *piOff = iOff + ((iVal-2) & 0x7FFFFFFF);
   191    196       *pi = i;
   192    197       return 0;
   193    198     }
   194    199   }
   195    200   

Changes to ext/fts5/fts5_index.c.

  4961   4961       while( 1 ){
  4962   4962         if( i1.iRowid<i2.iRowid ){
  4963   4963           /* Copy entry from i1 */
  4964   4964           fts5MergeAppendDocid(&out, iLastRowid, i1.iRowid);
  4965   4965           fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.nPoslist+i1.nSize);
  4966   4966           fts5DoclistIterNext(&i1);
  4967   4967           if( i1.aPoslist==0 ) break;
         4968  +        assert( out.n<=((i1.aPoslist - p1->p) + (i2.aPoslist - p2->p) + 9) );
  4968   4969         }
  4969   4970         else if( i2.iRowid!=i1.iRowid ){
  4970   4971           /* Copy entry from i2 */
  4971   4972           fts5MergeAppendDocid(&out, iLastRowid, i2.iRowid);
  4972   4973           fts5BufferSafeAppendBlob(&out, i2.aPoslist, i2.nPoslist+i2.nSize);
  4973   4974           fts5DoclistIterNext(&i2);
  4974   4975           if( i2.aPoslist==0 ) break;
         4976  +        assert( out.n<=((i1.aPoslist - p1->p) + (i2.aPoslist - p2->p) + 9) );
  4975   4977         }
  4976   4978         else{
  4977   4979           /* Merge the two position lists. */ 
  4978   4980           i64 iPos1 = 0;
  4979   4981           i64 iPos2 = 0;
  4980   4982           int iOff1 = 0;
  4981   4983           int iOff2 = 0;
................................................................................
  5041   5043           /* WRITEPOSLISTSIZE */
  5042   5044           fts5BufferSafeAppendVarint(&out, tmp.n * 2);
  5043   5045           fts5BufferSafeAppendBlob(&out, tmp.p, tmp.n);
  5044   5046           fts5DoclistIterNext(&i1);
  5045   5047           fts5DoclistIterNext(&i2);
  5046   5048           assert( out.n<=(p1->n+p2->n+9) );
  5047   5049           if( i1.aPoslist==0 || i2.aPoslist==0 ) break;
         5050  +        assert( out.n<=((i1.aPoslist - p1->p) + (i2.aPoslist - p2->p) + 9) );
  5048   5051         }
  5049   5052       }
  5050   5053   
  5051   5054       if( i1.aPoslist ){
  5052   5055         fts5MergeAppendDocid(&out, iLastRowid, i1.iRowid);
  5053   5056         fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.aEof - i1.aPoslist);
  5054   5057       }

Changes to ext/fts5/test/fts5corrupt3.test.

    20     20   # If SQLITE_ENABLE_FTS5 is defined, omit this file.
    21     21   ifcapable !fts5 {
    22     22     finish_test
    23     23     return
    24     24   }
    25     25   sqlite3_fts5_may_be_corrupt 1
    26     26   database_may_be_corrupt
           27  +
           28  +if 0 {
    27     29   
    28     30   proc create_t1 {} {
    29     31     expr srand(0)
    30     32     db func rnddoc fts5_rnddoc
    31     33     db eval {
    32     34       CREATE VIRTUAL TABLE t1 USING fts5(x);
    33     35       INSERT INTO t1(t1, rank) VALUES('pgsz', 64);
................................................................................
  8334   8336   | end crash-5a5acd0ab42d31.db
  8335   8337   }]} {}
  8336   8338   
  8337   8339   do_execsql_test 58.1 {
  8338   8340     SELECT * FROM t1('t*');
  8339   8341   } {{} {} {} {} {} {}}
  8340   8342   
         8343  +}
         8344  +
         8345  +#-------------------------------------------------------------------------
         8346  +do_test 59.0 {
         8347  +  sqlite3 db {}
         8348  +  db deserialize [decode_hexdb {
         8349  +.open --hexdb
         8350  +| size 32768 pagesize 4096 filename crash-96b136358d01ec.db
         8351  +| page 1 offset 0
         8352  +|      0: 53 51 4c 69 74 65 20 66 6f 72 6d 61 74 20 33 00   SQLite format 3.
         8353  +|     16: 10 00 01 01 00 40 20 20 00 00 00 00 00 00 00 00   .....@  ........
         8354  +|     96: 00 00 00 00 0d 0f c7 00 07 0d 92 00 0f 8d 0f 36   ...............6
         8355  +|    112: 0e cb 0e 6b 0e 0e 0d b6 0d 92 00 00 00 00 00 00   ...k............
         8356  +|   3472: 00 00 22 08 06 17 11 11 01 31 74 61 62 6c 65 74   .........1tablet
         8357  +|   3488: 32 74 32 08 43 52 45 41 54 45 20 54 41 42 4c 45   2t2.CREATE TABLE
         8358  +|   3504: 20 74 32 28 78 29 56 07 06 17 1f 1f 01 7d 74 61    t2(x)V.......ta
         8359  +|   3520: 62 6c 65 74 31 5f 63 6f 6e 66 69 67 74 31 5f 63   blet1_configt1_c
         8360  +|   3536: 6f 6e 66 69 67 07 43 52 45 41 54 45 20 54 41 42   onfig.CREATE TAB
         8361  +|   3552: 4c 45 20 27 74 31 5f 63 6f 6e 66 69 67 27 28 6b   LE 't1_config'(k
         8362  +|   3568: 20 50 52 49 4d 41 52 59 20 4b 45 59 2c 20 76 29    PRIMARY KEY, v)
         8363  +|   3584: 20 57 49 54 48 4f 55 54 20 52 4f 57 49 44 5b 06    WITHOUT ROWID[.
         8364  +|   3600: 07 17 21 21 01 81 01 74 61 62 6c 65 74 31 5f 64   ..!!...tablet1_d
         8365  +|   3616: 6f 63 73 69 7a 65 74 31 5f 64 6f 63 73 69 7a 65   ocsizet1_docsize
         8366  +|   3632: 06 43 52 45 41 54 45 20 54 41 42 4c 45 20 27 74   .CREATE TABLE 't
         8367  +|   3648: 31 5f 64 6f 63 73 69 7a 65 27 28 69 64 20 49 4e   1_docsize'(id IN
         8368  +|   3664: 54 45 47 45 52 20 50 52 49 4d 41 52 59 20 4b 45   TEGER PRIMARY KE
         8369  +|   3680: 59 2c 20 73 7a 20 42 4c 4f 42 29 5e 05 07 17 21   Y, sz BLOB)^...!
         8370  +|   3696: 21 01 81 07 74 61 62 6c 65 74 31 5f 63 6f 6e 74   !...tablet1_cont
         8371  +|   3712: 65 6e 74 74 31 5f 63 6f 6e 74 65 6e 74 05 43 52   entt1_content.CR
         8372  +|   3728: 45 41 54 45 20 54 41 42 4c 45 20 27 74 31 5f 63   EATE TABLE 't1_c
         8373  +|   3744: 6f 6e 74 65 6e 74 27 28 69 64 20 49 4e 54 45 47   ontent'(id INTEG
         8374  +|   3760: 45 52 20 50 52 49 4d 41 52 59 20 4b 45 59 2c 20   ER PRIMARY KEY, 
         8375  +|   3776: 63 30 2c 20 63 31 2c d6 63 32 29 69 04 07 17 19   c0, c1,.c2)i....
         8376  +|   3792: 19 01 81 2d 74 61 62 6c 65 74 31 5f 69 64 78 74   ...-tablet1_idxt
         8377  +|   3808: 31 5f 69 64 78 04 43 52 45 41 54 45 20 54 41 42   1_idx.CREATE TAB
         8378  +|   3824: 4c 45 20 27 74 31 5f 69 64 78 27 28 73 65 67 69   LE 't1_idx'(segi
         8379  +|   3840: 64 2c 20 74 65 72 6d 2c 20 70 67 6e 6f 2c 20 50   d, term, pgno, P
         8380  +|   3856: 52 49 4d 41 52 59 20 4b 45 59 28 73 65 67 69 64   RIMARY KEY(segid
         8381  +|   3872: 2c 20 74 65 72 6d 29 29 20 57 49 54 48 4f 55 54   , term)) WITHOUT
         8382  +|   3888: 20 52 4f 57 49 44 55 03 07 17 1b 1b 01 81 01 74    ROWIDU........t
         8383  +|   3904: 61 62 6c 65 74 31 5f 64 61 74 61 74 31 5f 64 61   ablet1_datat1_da
         8384  +|   3920: 74 61 03 43 52 45 41 54 45 20 54 41 42 4c 45 20   ta.CREATE TABLE 
         8385  +|   3936: 27 74 31 5f 64 61 74 61 27 28 69 64 20 49 4e 54   't1_data'(id INT
         8386  +|   3952: 45 47 45 52 20 50 52 49 4d 41 52 59 20 4b 45 59   EGER PRIMARY KEY
         8387  +|   3968: 2c 20 62 6c 6f 63 6b 20 42 4c 4f 42 29 38 02 06   , block BLOB)8..
         8388  +|   3984: 17 11 11 08 5f 74 61 62 6c 65 74 31 74 31 43 52   ...._tablet1t1CR
         8389  +|   4000: 45 41 54 45 20 56 49 52 54 55 41 4c 20 54 41 42   EATE VIRTUAL TAB
         8390  +|   4016: 4c 45 20 74 31 20 55 53 49 4e 47 20 66 74 73 35   LE t1 USING fts5
         8391  +|   4032: 28 61 2c 62 2c 63 29 00 00 00 00 00 00 00 00 00   (a,b,c).........
         8392  +| page 3 offset 8192
         8393  +|      0: 0d 00 00 00 03 0c 93 ff 0f e6 0f ef 0c 94 00 00   ................
         8394  +|   3216: 00 00 00 00 86 4a 84 80 80 80 80 01 04 00 8d 18   .....J..........
         8395  +|   3232: 00 00 03 2b 02 30 30 01 02 06 01 02 06 01 02 06   ...+.00.........
         8396  +|   3248: 1f 02 03 01 02 03 01 02 03 01 08 32 31 31 36 30   ...........21160
         8397  +|   3264: 36 30 39 01 02 07 01 02 07 01 02 07 01 01 33 f1   609...........3.
         8398  +|   3280: 02 05 01 02 05 01 02 05 01 01 35 01 02 03 01 02   ..........5.....
         8399  +|   3296: 04 01 02 04 02 07 30 30 30 30 30 30 30 1c 02 3d   ......0000000..=
         8400  +|   3312: 01 02 04 01 02 04 01 06 62 69 6e 61 72 79 03 06   ........binary..
         8401  +|   3328: 01 02 02 03 06 01 01 f2 03 06 4e 02 02 03 06 01   ..........N.....
         8402  +|   3344: 02 02 03 06 01 02 02 03 06 01 02 02 03 06 01 02   ................
         8403  +|   3360: 02 03 06 01 02 02 03 06 01 02 02 03 06 01 02 02   ................
         8404  +|   3376: 03 06 01 02 02 03 06 01 02 02 01 08 63 6f 6d 70   ............comp
         8405  +|   3392: 69 6c 65 72 01 02 02 01 02 02 01 02 02 01 06 64   iler...........d
         8406  +|   3408: 62 73 74 61 74 07 02 03 01 02 13 01 02 03 02 04   bstat...........
         8407  +|   3424: 65 62 75 67 04 02 02 01 02 02 01 02 02 01 07 65   ebug...........e
         8408  +|   3440: 6e 61 62 6c 65 07 02 02 01 02 02 01 02 02 01 02   nable...........
         8409  +|   3456: 02 01 02 02 01 02 02 01 02 02 01 02 02 01 02 02   ................
         8410  +|   3472: 01 02 02 01 02 02 01 02 01 f1 02 02 01 02 02 01   ................
         8411  +|   3488: 02 02 01 02 02 01 02 02 01 02 02 01 02 02 01 02   ................
         8412  +|   3504: 02 01 02 02 02 08 78 74 65 6e 73 69 6f 6e 1f 02   ......xtension..
         8413  +|   3520: 04 01 02 04 01 02 04 01 04 66 74 73 34 0a 02 03   .........fts4...
         8414  +|   3536: 01 02 03 01 02 03 04 01 25 0d 02 03 01 02 03 01   ........%.......
         8415  +|   3552: 02 03 01 03 67 63 63 01 02 03 01 02 03 01 02 03   ....gcc.........
         8416  +|   3568: 02 06 65 6f 70 6f 6c 79 0f f2 03 01 02 03 01 02   ..eopoly........
         8417  +|   3584: 03 01 05 6a 73 6f 6e 31 13 02 03 01 02 03 01 02   ...json1........
         8418  +|   3600: 03 01 04 6c 6f 61 64 1f 02 03 01 02 03 01 02 03   ...load.........
         8419  +|   3616: 00 03 6d 61 78 1c 02 02 01 02 02 01 02 02 02 05   ..max...........
         8420  +|   3632: 65 6d 6f 72 79 1c 02 03 01 02 03 01 02 03 04 04   emory...........
         8421  +|   3648: 73 79 73 35 16 02 03 01 02 03 01 02 03 01 06 6e   sys5...........n
         8422  +|   3664: 6f 63 61 73 65 02 06 01 02 02 13 06 00 f2 02 03   ocase...........
         8423  +|   3680: 06 01 02 02 13 06 01 02 02 03 06 01 02 02 03 06   ................
         8424  +|   3696: 01 02 02 03 06 01 02 02 03 06 01 02 02 03 06 01   ................
         8425  +|   3712: 02 02 03 06 01 02 02 03 06 01 02 02 03 06 01 02   ................
         8426  +|   3728: 02 01 04 6f 6d 69 74 1f 02 02 01 02 02 01 02 02   ...omit.........
         8427  +|   3744: 01 0a 22 74 72 65 65 19 02 03 01 02 03 01 02 03   ...tree.........
         8428  +|   3760: 04 02 69 6d 01 06 01 02 02 03 06 01 02 02 03 06   ..im............
         8429  +|   3776: 01 02 02 03 06 01 02 02 03 06 01 02 02 03 06 01   ................
         8430  +|   3792: 02 02 03 06 01 02 02 03 06 01 02 02 03 06 01 02   ................
         8431  +|   3808: 02 03 06 01 02 02 03 06 01 02 02 03 06 01 02 02   ................
         8432  +|   3824: 01 0a 74 68 72 65 61 64 73 61 66 65 22 02 02 01   ..threadsafe....
         8433  +|   3840: 02 02 01 02 02 01 04 76 74 61 62 07 02 04 01 02   .......vtab.....
         8434  +|   3856: 04 01 02 04 01 01 78 01 06 01 01 02 01 06 01 01   ......x.........
         8435  +|   3872: 02 01 06 01 01 02 01 06 01 01 02 01 06 01 01 02   ................
         8436  +|   3888: 01 06 01 11 02 01 06 01 01 02 01 06 01 01 02 01   ................
         8437  +|   3904: 06 01 01 02 01 06 01 01 02 01 06 01 01 02 01 06   ................
         8438  +|   3920: 01 01 02 01 06 01 01 02 01 06 01 01 02 01 06 01   ................
         8439  +|   3936: 01 02 01 06 01 01 02 01 06 01 01 02 01 06 01 01   ................
         8440  +|   3952: 02 01 06 01 01 01 f1 06 01 01 02 ad 06 01 01 02   ................
         8441  +|   3968: 01 06 01 01 02 01 06 01 01 02 01 06 01 01 02 01   ................
         8442  +|   3984: 06 01 01 01 01 06 01 01 02 01 06 01 01 02 01 06   ................
         8443  +|   4000: 01 01 02 01 06 01 01 02 01 06 01 01 02 01 06 01   ................
         8444  +|   4016: 01 02 01 06 01 01 02 01 06 01 01 02 01 06 01 01   ................
         8445  +|   4032: 02 01 06 01 01 02 01 06 01 01 02 04 15 13 0c 0c   ................
         8446  +|   4048: 12 44 13 11 0f 47 13 0e fc 0e 11 10 0f 0e 10 0f   .D...G..........
         8447  +|   4064: 44 0f 10 40 15 0f 07 01 03 00 14 24 5a 24 24 0f   D..@.......$Z$$.
         8448  +|   4080: 0a 03 00 24 00 00 00 00 01 01 01 00 01 01 01 01   ...$............
         8449  +| page 4 offset 12288
         8450  +|      0: 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
         8451  +|   4080: 00 00 00 00 00 00 00 00 00 00 05 04 09 0c 01 02   ................
         8452  +| page 5 offset 16384
         8453  +|      0: 0d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
         8454  +|   3072: 00 00 00 00 00 00 00 00 00 00 18 24 05 00 25 0f   ...........$..%.
         8455  +|   3088: 19 54 48 52 45 41 44 53 41 46 45 3d 30 58 42 49   .THREADSAFE=0XBI
         8456  +|   3104: 4e 41 52 59 18 23 05 00 25 0f 19 54 48 52 45 41   NARY.#..%..THREA
         8457  +|   3120: 44 53 41 46 45 3d 30 58 4e 4f 43 41 53 45 17 8f   DSAFE=0XNOCASE..
         8458  +|   3136: 05 00 25 0f 17 54 48 52 45 41 44 53 41 46 45 3d   ..%..THREADSAFE=
         8459  +|   3152: 30 58 52 54 52 49 4d 1f 21 05 00 33 0f 19 45 ed   0XRTRIM.!..3..E.
         8460  +|   3168: 49 54 20 4c 4f 41 44 21 45 58 54 45 4e 53 49 4f   IT LOAD!EXTENSIO
         8461  +|   3184: 4e 58 42 49 4e 41 52 59 1f 20 05 00 33 0f 19 4f   NXBINARY. ..3..O
         8462  +|   3200: 4d 49 54 20 4c 4f 41 44 20 45 58 54 45 4e 5a 29   MIT LOAD EXTENZ)
         8463  +|   3216: 4f 4e 58 4e 4f 43 41 53 45 1e 1f 05 00 33 0f 17   ONXNOCASE....3..
         8464  +|   3232: 4f 4d 59 54 20 4c 4f 41 44 20 45 58 54 45 4e 53   OMYT LOAD EXTENS
         8465  +|   3248: 49 4f 4e 58 52 54 56 a9 4d 1f 1e 05 00 33 0f 19   IONXRTV.M....3..
         8466  +|   3264: 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30 30   MAX MEMORY=50000
         8467  +|   3280: 30 30 30 57 42 49 4e 31 52 59 1f 1d 05 00 33 0f   000WBIN1RY....3.
         8468  +|   3296: 19 4d 41 58 20 4d 45 4d 4f 52 59 3d 35 30 30 30   .MAX MEMORY=5000
         8469  +|   3312: 30 30 30 30 58 4e 4f 43 41 53 45 1e 1c 05 00 32   0000XNOCASE....2
         8470  +|   3328: 0f 17 4e 41 58 20 4d 45 4d 4f 52 59 2d 35 30 30   ..NAX MEMORY-500
         8471  +|   3344: 30 30 30 30 30 58 52 54 52 49 4d 18 1b 05 00 25   00000XRTRIM....%
         8472  +|   3360: 0f 19 45 4e 41 42 4c 45 20 52 54 52 45 45 58 42   ..ENABLE RTREEXB
         8473  +|   3376: 49 4e 41 52 59 18 1a 05 00 25 0f 19 45 4e 41 42   INARY....%..ENAB
         8474  +|   3392: 4c 45 20 52 54 52 45 45 59 4e 4f 43 41 53 45 17   LE RTREEYNOCASE.
         8475  +|   3408: 19 66 00 25 0f 17 45 4e 41 42 4c 45 20 52 54 52   .f.%..ENABLE RTR
         8476  +|   3424: 45 45 58 52 54 52 49 4d 1a 18 05 00 29 0f 19 45   EEXRTRIM....)..E
         8477  +|   3440: 4e 41 42 4c 45 20 4d 45 4d 53 59 53 35 58 42 49   NABLE MEMSYS5XBI
         8478  +|   3456: 4e 41 52 59 1a 17 05 00 29 0f 19 45 4e 41 42 4c   NARY....)..ENABL
         8479  +|   3472: 45 20 4d 45 4d 53 59 53 35 58 4e 4f 43 41 53 45   E MEMSYS5XNOCASE
         8480  +|   3488: 19 16 05 00 29 0f 17 45 4e 41 42 4c 45 20 4d 45   ....)..ENABLE ME
         8481  +|   3504: 4d 53 59 76 35 58 52 54 52 49 4d 18 15 05 10 25   MSYv5XRTRIM....%
         8482  +|   3520: 0f 19 45 4e 40 42 4c 45 20 4a 53 4f 4e 31 58 42   ..EN@BLE JSON1XB
         8483  +|   3536: 49 4e 41 52 59 18 14 05 00 25 0f 19 45 4e 41 42   INARY....%..ENAB
         8484  +|   3552: 4c 45 20 4a 53 4f 4e 32 58 4e 4f 43 41 53 45 17   LE JSON2XNOCASE.
         8485  +|   3568: 13 05 00 25 0f 17 45 4e 41 42 4c 45 20 4a 53 4f   ...%..ENABLE JSO
         8486  +|   3584: 4e 31 58 52 54 52 49 4d 1a 12 05 00 29 0f 19 45   N1XRTRIM....)..E
         8487  +|   3600: 4e 41 42 4c 45 20 47 45 4f 50 4f 4c 59 58 42 49   NABLE GEOPOLYXBI
         8488  +|   3616: 4e 41 52 59 1a 11 05 00 29 0f 19 45 5f 81 42 4c   NARY....)..E_.BL
         8489  +|   3632: 45 20 47 45 4f 50 4f 4c 59 58 4e 4f 43 51 53 45   E GEOPOLYXNOCQSE
         8490  +|   3648: 19 10 05 00 29 0f 17 45 4e 41 42 4c 45 20 47 45   ....)..ENABLE GE
         8491  +|   3664: 4f 50 4f 4c 59 58 52 54 52 49 4d 17 0f 05 00 23   OPOLYXRTRIM....#
         8492  +|   3680: 0f 1a 45 4e 41 42 4c 45 20 56 54 43 35 58 42 49   ..ENABLE VTC5XBI
         8493  +|   3696: 4e 41 52 59 17 0e 05 00 23 0f 19 45 4e 41 42 4c   NARY....#..ENABL
         8494  +|   3712: 45 20 46 54 53 35 48 4e 4f 43 41 53 45 16 1d 05   E FTS5HNOCASE...
         8495  +|   3728: 00 23 0f a4 45 4e 41 42 4c 45 20 46 54 53 35 58   .#..ENABLE FTS5X
         8496  +|   3744: 52 54 52 49 4d 17 0c 05 00 23 0f 19 45 4e 41 42   RTRIM....#..ENAB
         8497  +|   3760: 4c 45 20 46 55 53 34 58 42 49 4e 41 52 59 17 0b   LE FUS4XBINARY..
         8498  +|   3776: 05 00 23 0f 19 45 4e 41 42 4c 45 20 46 54 53 34   ..#..ENABLE FTS4
         8499  +|   3792: 57 4e 4f 43 41 53 45 16 0a 05 00 23 0f 17 45 4e   WNOCASE....#..EN
         8500  +|   3808: 41 42 4c 45 20 46 54 53 34 05 52 54 52 49 4d 1e   ABLE FTS4.RTRIM.
         8501  +|   3824: 09 05 00 31 0f 19 45 4e 41 42 4c 45 20 44 42 53   ...1..ENABLE DBS
         8502  +|   3840: 54 41 54 20 56 54 41 42 58 42 49 4e 41 52 59 1e   TAT VTABXBINARY.
         8503  +|   3856: 08 05 00 31 0f 19 45 4e 41 42 4c 45 20 44 42 53   ...1..ENABLE DBS
         8504  +|   3872: 54 41 54 20 56 54 41 42 58 4e 4f 43 41 53 45 1d   TAT VTABXNOCASE.
         8505  +|   3888: 07 05 00 31 0f 17 45 4e 41 42 4c 45 20 44 42 53   ...1..ENABLE DBS
         8506  +|   3904: 54 41 54 20 56 54 41 42 58 52 54 52 49 4d 11 06   TAT VTABXRTRIM..
         8507  +|   3920: 05 00 17 0f 19 44 45 42 55 47 58 42 49 4e 41 52   .....DEBUGXBINAR
         8508  +|   3936: 59 11 05 05 00 17 0f 19 44 45 42 55 47 58 4e 4f   Y.......DEBUGXNO
         8509  +|   3952: 43 41 53 45 10 04 05 00 17 0f 17 44 45 42 55 47   CASE.......DEBUG
         8510  +|   3968: 58 52 54 52 49 4d 27 03 05 00 43 0f 19 43 4f 4d   XRTRIM'...C..COM
         8511  +|   3984: 50 49 4c 45 52 3d 67 63 63 2d 35 2e 34 2e 30 20   PILER=gcc-5.4.0 
         8512  +|   4000: 32 30 31 36 30 36 30 39 58 42 49 4e 41 52 59 27   20160609XBINARY'
         8513  +|   4016: 02 05 00 43 0f 19 43 4f 4d 50 49 4c 45 52 3f 87   ...C..COMPILER?.
         8514  +|   4032: 63 63 2d 35 2e 34 2e 30 20 32 30 31 36 30 36 30   cc-5.4.0 2016060
         8515  +|   4048: 39 58 4e 4f 43 41 53 45 26 01 05 00 43 0f 17 43   9XNOCASE&...C..C
         8516  +|   4064: 45 0d 60 59 4c 45 52 3d 67 63 63 2d 35 2e 34 00   E.`YLER=gcc-5.4.
         8517  +| page 6 offset 20480
         8518  +|   3808: 06 24 03 00 12 02 01 01 06 23 03 00 12 02 01 01   .$.......#......
         8519  +|   3824: 06 22 03 01 12 02 01 01 06 21 03 00 12 03 01 01   .........!......
         8520  +|   3840: 06 20 03 00 12 03 01 01 06 1f 03 00 12 03 02 01   . ..............
         8521  +|   3856: 06 1e 03 00 12 03 01 01 06 1d 03 00 12 03 01 01   ................
         8522  +|   3872: 06 1c 03 00 12 03 01 01 06 1b 03 00 12 02 01 01   ................
         8523  +|   3888: 06 1a 03 00 12 02 01 01 06 19 03 00 12 02 01 01   ................
         8524  +|   3904: 06 18 03 00 12 02 01 01 06 17 03 00 12 02 01 01   ................
         8525  +|   3920: 06 16 03 00 12 02 01 01 06 15 03 00 12 02 01 01   ................
         8526  +|   3936: 06 14 03 00 12 02 01 01 06 13 03 00 12 02 01 01   ................
         8527  +|   3952: 06 12 03 00 12 02 01 01 06 11 03 00 12 02 01 01   ................
         8528  +|   3968: 06 00 03 00 12 02 01 01 06 0f 03 00 12 02 01 01   ................
         8529  +|   3984: 06 0e 03 00 12 02 01 01 06 0d 03 00 12 02 01 01   ................
         8530  +|   4000: 06 0c 03 00 12 02 01 01 06 0b 03 10 12 02 01 01   ................
         8531  +|   4016: 06 0a 03 00 12 02 01 01 06 09 03 00 12 03 01 01   ................
         8532  +|   4032: 06 08 03 00 12 03 01 01 06 07 03 00 12 03 01 01   ................
         8533  +|   4048: 07 06 03 00 12 01 01 01 06 05 03 00 12 01 01 01   ................
         8534  +|   4064: 06 04 03 00 12 01 01 01 06 03 03 00 12 06 01 01   ................
         8535  +|   4080: 06 02 03 00 12 06 01 01 06 01 03 00 12 06 01 01   ................
         8536  +| page 7 offset 24576
         8537  +|      0: 0a 00 00 00 01 0f f4 00 0f f4 00 00 00 00 00 00   ................
         8538  +|   4080: 00 00 00 00 0b 03 1b 01 76 65 72 73 69 6f 6e 04   ........version.
         8539  +| page 8 offset 28672
         8540  +|   4048: 00 00 00 00 00 00 5d 03 02 2b 69 6e 74 00 00 00   ......]..+int...
         8541  +| end crash-96b136358d01ec.db
         8542  +}]} {}
         8543  +
         8544  +do_catchsql_test 59.1 {
         8545  +  SELECT (matchinfo(591,t1)) FROM t1 WHERE t1 MATCH 'e*eŸ'
         8546  +} {0 {}}
         8547  +
  8341   8548   sqlite3_fts5_may_be_corrupt 0
  8342   8549   finish_test
  8343   8550