/ Check-in [9bf811ea]
Login

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

Overview
Comment:Fix another problem with corrupt databases in fts5.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9bf811ea89a133d481a86407683a7518e909eccb7aa3aa02f7932bdb33387572
User & Date: dan 2019-01-11 19:27:55
Context
2019-01-11
21:34
Fix a segfault in fts3 prompted by a corrupted database. check-in: 2d7b1d1d user: dan tags: trunk
19:27
Fix another problem with corrupt databases in fts5. check-in: 9bf811ea user: dan tags: trunk
17:41
Fix a problem handling a negative value in the "number-of-pages" database header field. Also a problem with running "REINDEX tbl" against a virtual table for which the SQL passed to sqlite3_declare_vtab() contains PRIMARY KEY or UNIQUE constraints. check-in: 556dd892 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5_varint.c.

    72     72     ** routine.
    73     73     */
    74     74     {
    75     75       u64 v64;
    76     76       u8 n;
    77     77       p -= 2;
    78     78       n = sqlite3Fts5GetVarint(p, &v64);
    79         -    *v = (u32)v64;
           79  +    *v = ((u32)v64) & 0x7FFFFFFF;
    80     80       assert( n>3 && n<=9 );
    81     81       return n;
    82     82     }
    83     83   }
    84     84   
    85     85   
    86     86   /*

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

  3713   3713   do_catchsql_test 32.4 {
  3714   3714     SELECT fts5_decode(id, block) FROM t1_data;
  3715   3715   } {1 {database disk image is malformed}}
  3716   3716   
  3717   3717   do_catchsql_test 32.5 {
  3718   3718     SELECT fts5_decode(id, block) FROM t2_data;
  3719   3719   } {1 {database disk image is malformed}}
         3720  +
         3721  +#-------------------------------------------------------------------------
         3722  +reset_db
         3723  +do_test 33.0 {
         3724  +  sqlite3 db {}
         3725  +  db deserialize [decode_hexdb {
         3726  +| size 28672 pagesize 4096 filename crash-fed6e90021ba5d.db
         3727  +| page 1 offset 0
         3728  +|      0: 53 51 4c 69 74 65 20 66 6f 72 6d 61 74 20 33 00   SQLite format 3.
         3729  +|     16: 10 00 01 01 00 40 20 20 00 00 00 00 00 00 00 07   .....@  ........
         3730  +|     32: 00 00 00 02 00 00 00 01 00 00 00 08 00 00 00 04   ................
         3731  +|     48: 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00   ................
         3732  +|     96: 00 00 00 00 0d 0f c7 00 06 0d b6 00 0f 8d 0f 36   ...............6
         3733  +|    112: 0e cb 0e 6b 0e 0e 0d b6 0d b6 00 00 00 00 00 00   ...k............
         3734  +|   3504: 00 00 00 00 00 00 56 07 06 17 1f 1f 01 7d 74 61   ......V.......ta
         3735  +|   3520: 62 6c 65 74 31 5f 63 6f 6e 66 69 67 74 31 5f 63   blet1_configt1_c
         3736  +|   3536: 6f 6e 66 69 67 07 43 52 45 41 54 45 20 54 41 42   onfig.CREATE TAB
         3737  +|   3552: 4c 45 20 27 74 31 5f 63 6f 6e 66 69 67 27 28 6b   LE 't1_config'(k
         3738  +|   3568: 20 50 52 49 4d 41 52 59 20 4b 45 59 2c 20 76 29    PRIMARY KEY, v)
         3739  +|   3584: 20 57 49 54 48 4f 55 54 20 52 4f 57 49 44 5b 06    WITHOUT ROWID[.
         3740  +|   3600: 07 17 21 21 01 81 01 74 61 62 6c 65 74 31 5f 64   ..!!...tablet1_d
         3741  +|   3616: 6f 63 73 69 8a 65 74 31 5f 64 6f 63 73 69 7a 65   ocsi.et1_docsize
         3742  +|   3632: 06 43 52 45 41 54 45 20 54 41 42 4c 45 20 27 74   .CREATE TABLE 't
         3743  +|   3648: 31 5f 64 6f 63 73 69 7a 65 27 28 69 64 20 49 4e   1_docsize'(id IN
         3744  +|   3664: 54 45 47 45 52 20 50 52 49 4d 41 52 59 20 4b 45   TEGER PRIMARY KE
         3745  +|   3680: 59 2c 20 73 7a 20 42 4c 4f 42 29 5e 05 07 17 21   Y, sz BLOB)^...!
         3746  +|   3696: 21 01 81 07 74 61 62 6c 65 74 31 5f 63 6f 6e 74   !...tablet1_cont
         3747  +|   3712: 65 6e 74 74 31 5f 63 6f 6e 74 65 6e 74 05 43 52   entt1_content.CR
         3748  +|   3728: 45 41 54 45 20 54 41 42 4c 45 20 27 74 31 5f 63   EATE TABLE 't1_c
         3749  +|   3744: 6f 6e 74 65 6e 74 27 28 69 64 20 49 4e 54 45 47   ontent'(id INTEG
         3750  +|   3760: 45 52 20 50 52 49 4d 41 52 59 20 4b 45 59 2c 20   ER PRIMARY KEY, 
         3751  +|   3776: 63 30 2c 20 63 31 2c 20 63 32 29 69 04 07 17 19   c0, c1, c2)i....
         3752  +|   3792: 19 01 81 2d 74 61 62 6c 65 74 31 5f 69 64 78 74   ...-tablet1_idxt
         3753  +|   3808: 31 5f 69 64 78 04 43 52 45 41 54 45 20 54 41 42   1_idx.CREATE TAB
         3754  +|   3824: 4c 45 20 27 74 31 5f 69 64 78 27 28 73 65 67 69   LE 't1_idx'(segi
         3755  +|   3840: 64 2c 20 74 65 72 6d 2c 20 70 67 6e 6f 2c 20 50   d, term, pgno, P
         3756  +|   3856: 52 49 4d 41 52 59 20 4b 45 59 28 73 65 67 69 64   RIMARY KEY(segid
         3757  +|   3872: 2c 20 74 65 72 6d 29 29 20 57 49 54 48 4f 55 54   , term)) WITHOUT
         3758  +|   3888: 20 52 4f 57 49 44 55 03 07 17 1b 1b 01 81 01 74    ROWIDU........t
         3759  +|   3904: 61 62 6c 65 74 31 5f 64 61 74 61 74 31 5f 64 61   ablet1_datat1_da
         3760  +|   3920: 74 61 03 43 52 45 41 54 45 20 54 41 42 4c 45 20   ta.CREATE TABLE 
         3761  +|   3936: 27 74 31 5f 64 61 74 61 27 28 69 64 20 49 4e 54   't1_data'(id INT
         3762  +|   3952: 45 47 45 52 20 50 52 49 4d 41 52 59 20 4b 45 59   EGER PRIMARY KEY
         3763  +|   3968: 2c 20 62 6c 6f 63 6b 20 42 4c 4f 42 29 38 02 06   , block BLOB)8..
         3764  +|   3984: 17 11 11 08 5f 74 61 62 6c 65 74 31 74 31 43 52   ...._tablet1t1CR
         3765  +|   4000: 45 41 54 45 20 56 49 52 54 55 41 4c 20 54 41 42   EATE VIRTUAL TAB
         3766  +|   4016: 4c 45 20 74 31 20 55 53 49 4e 47 20 66 74 73 35   LE t1 USING fts5
         3767  +|   4032: 28 61 2c 62 2c 63 29 00 00 00 39 00 00 00 00 00   (a,b,c)...9.....
         3768  +| page 3 offset 8192
         3769  +|      0: 0d 00 00 00 03 0c af 00 0f e6 0f ef 0c af 00 00   ................
         3770  +|   3232: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 86   ................
         3771  +|   3248: 2f 84 80 80 80 80 01 04 00 8c 62 00 00 03 12 02   /.........b.....
         3772  +|   3264: 30 30 01 04 05 03 01 04 05 03 01 04 05 03 1f 02   00..............
         3773  +|   3280: 03 01 02 03 01 02 03 01 08 35 30 30 30 30 30 30   .........5000000
         3774  +|   3296: 30 1c 02 04 01 0e ee ca ec ea ea ab e4 f5 ca b1   0...............
         3775  +|   3312: ac ee ec de ef 3e ee ca ee ec f2 f8 0f f0 0f e8   .....>..........
         3776  +|   3328: 0f e0 0f d8 0f d0 0f c8 0f c0 0f b8 0f b0 0f a8   ................
         3777  +|   3344: 0f a0 0f 98 0f 90 0f 88 0f 80 0f 78 0f 70 0f 68   ...........x.p.h
         3778  +|   3360: 0f 60 0f 58 0f 50 0f 48 0f 40 0f 38 0f 30 0f 28   .`.X.P.H.@.8.0.(
         3779  +|   3376: 0f 20 0f 18 0f 10 0f 08 0f 00 0e f8 0e f0 0e e8   . ..............
         3780  +|   3392: 0e e0 02 03 01 02 03 01 02 03 02 07 6f 6d 70 69   ............ompi
         3781  +|   3408: 6c 65 72 01 02 02 01 02 02 01 02 02 01 06 64 62   ler...........db
         3782  +|   3424: 73 74 61 74 07 02 03 01 02 03 01 02 03 02 04 65   stat...........e
         3783  +|   3440: 62 75 67 04 02 02 01 02 02 01 02 02 01 06 65 6e   bug...........en
         3784  +|   3456: 61 62 6c 65 07 02 02 01 02 02 01 02 02 01 02 02   able............
         3785  +|   3472: 01 02 02 01 02 02 01 02 02 01 02 02 01 02 02 01   ................
         3786  +|   3488: 02 02 01 02 02 01 02 02 01 02 02 01 02 02 01 02   ................
         3787  +|   3504: 02 01 02 02 01 02 02 01 02 02 01 02 02 01 02 02   ................
         3788  +|   3520: 01 02 02 02 08 78 74 65 6e 73 69 6f 6e 1f 02 04   .....xtension...
         3789  +|   3536: 01 02 04 01 02 04 01 04 66 74 73 34 0a 02 03 03   ........fts4....
         3790  +|   3552: 01 02 01 02 03 04 01 35 0d 02 03 01 02 03 01 02   .......5........
         3791  +|   3568: 03 01 07 67 65 6f 70 6f 6c 79 10 02 03 01 02 03   ...geopoly......
         3792  +|   3584: 01 02 03 01 05 6a 73 6f 6e 31 13 02 03 01 02 03   .....json1......
         3793  +|   3600: 01 02 03 01 04 6c 6f 61 64 1f 02 03 01 02 03 01   .....load.......
         3794  +|   3616: 02 03 01 03 6d 61 78 1c 02 02 01 02 02 01 02 02   ....max.........
         3795  +|   3632: 02 05 65 6d 6f 72 79 1c 02 03 01 02 03 01 02 03   ..emory.........
         3796  +|   3648: 04 04 73 79 73 35 16 02 03 01 02 03 01 02 03 01   ..sys5..........
         3797  +|   3664: 06 6e 6f 63 61 73 65 02 06 01 02 02 03 06 01 02   .nocase.........
         3798  +|   3680: 02 03 06 01 02 02 03 06 01 02 02 03 06 01 02 02   ................
         3799  +|   3696: 03 06 01 02 02 03 06 01 02 02 03 06 01 02 02 03   ................
         3800  +|   3712: 06 01 02 02 03 06 01 02 02 03 06 01 02 02 03 06   ................
         3801  +|   3728: 01 02 02 01 04 6f 6d 69 74 1f 02 02 01 02 02 01   .....omit.......
         3802  +|   3744: 02 02 01 05 72 74 72 65 65 19 02 03 01 02 03 01   ....rtree.......
         3803  +|   3760: 02 03 04 02 69 6d 01 06 01 02 02 03 06 01 02 02   ....im..........
         3804  +|   3776: 03 06 01 02 02 03 06 01 02 02 03 06 01 02 02 03   ................
         3805  +|   3792: 06 01 02 02 03 06 01 02 02 03 06 01 02 02 03 06   ................
         3806  +|   3808: 01 02 02 03 06 01 02 02 03 06 01 02 02 03 06 01   ................
         3807  +|   3824: 02 02 01 0a 74 68 72 65 61 64 73 61 66 65 22 02   ....threadsafe..
         3808  +|   3840: 02 01 02 02 01 02 02 01 04 76 74 61 62 07 02 04   .........vtab...
         3809  +|   3856: 01 02 04 01 02 04 01 01 78 01 06 01 01 02 01 06   ........x.......
         3810  +|   3872: 01 01 02 01 06 01 01 02 01 06 01 01 02 01 06 01   ................
         3811  +|   3888: 01 02 01 06 01 01 02 01 06 01 01 02 01 06 01 01   ................
         3812  +|   3904: 02 01 06 01 01 02 01 06 01 01 02 01 06 01 01 02   ................
         3813  +|   3920: 01 06 01 01 02 01 06 01 01 02 01 06 01 01 02 01   ................
         3814  +|   3936: 06 01 01 02 01 06 01 01 02 01 06 01 01 02 01 06   ................
         3815  +|   3952: 01 01 02 01 06 01 01 02 01 06 01 01 02 01 06 01   ................
         3816  +|   3968: 01 02 01 06 01 01 02 01 06 01 01 02 01 06 01 01   ................
         3817  +|   3984: 02 01 06 01 01 02 01 06 01 01 02 01 06 01 01 02   ................
         3818  +|   4000: 01 06 01 01 02 01 06 01 01 02 01 06 01 01 02 01   ................
         3819  +|   4016: 06 01 01 02 01 06 01 01 02 01 06 01 01 02 01 06   ................
         3820  +|   4032: 01 01 02 01 06 01 01 02 01 06 01 01 02 04 18 13   ................
         3821  +|   4048: 0c 44 10 12 11 0f 47 13 0f 0c 12 10 0f 0e 10 0f   .D....G.........
         3822  +|   4064: 44 0f 10 40 15 0f 07 01 03 00 14 24 57 24 24 0f   D..@.......$W$$.
         3823  +|   4080: 0a 03 00 24 00 00 00 00 01 01 01 00 01 01 01 01   ...$............
         3824  +| page 4 offset 12288
         3825  +|      0: 0a 00 00 00 01 0f fa 00 0f fa 00 00 00 00 00 00   ................
         3826  +|   4080: 00 00 00 00 00 00 00 00 00 00 05 04 09 0c 01 02   ................
         3827  +| page 5 offset 16384
         3828  +|      0: 0d 00 00 00 24 0c 1f 00 0f df 0f bd 0f 9b 0f 89   ....$...........
         3829  +|     16: 0f 76 0f 63 0f 44 0f 24 0f 04 0e ec 0e d3 0e ba   .v.c.D.$........
         3830  +|     32: 0e a2 0e 89 0e 70 0e 55 0e 39 0e 1d 0e 04 0d ea   .....p.U.9......
         3831  +|     48: 0d d0 0d b5 0d 99 0d 7d 0d 64 0d 4a 0d 30 0d 10   .........d.J.0..
         3832  +|     64: 0c ef 0c ce 0c ae 54 d5 35 95 33 55 84 24 94 e4   ......T.5.3U.$..
         3833  +|     80: 15 25 91 a1 70 50 02 90 f1 94 54 e4 14 24 c4 52   .%..pP....T..$.R
         3834  +|     96: 04 d4 54 d5 35 95 33 55 84 e4 f4 34 15 34 51 91   ..T.5.3U...4.4Q.
         3835  +|    112: 60 50 02 90 f1 74 54 e4 14 24 c4 52 04 d4 54 d5   `P...tT..$.R..T.
         3836  +|    128: 35 95 33 55 85 25 45 24 94 d1 81 50 50 02 50 f1   5.3U.%E$...PP.P.
         3837  +|    144: 94 54 e4 14 24 c4 52 04 a5 34 f4 e3 15 84 24 94   .T..$.R..4....$.
         3838  +|    160: e4 15 25 91 81 40 50 02 50 f1 94 54 e4 14 24 c4   ..%..@P.P..T..$.
         3839  +|    176: 52 04 a5 34 f4 e3 15 84 e4 f4 34 15 34 51 71 30   R..4......4.4Qq0
         3840  +|    192: 50 02 50 f1 74 54 e4 14 24 c4 52 04 ae 4f 41 33   P.P.tT..$.R..OA3
         3841  +|    208: 55 85 25 45 24 94 d1 a1 20 50 02 90 f1 94 54 e4   U.%E$... P....T.
         3842  +|    224: 14 24 c4 52 04 74 54 f5 04 f4 c5 95 84 24 94 e4   .$.R.tT......$..
         3843  +|    240: 15 25 91 a1 10 50 02 90 f1 94 54 e4 14 24 c4 52   .%...P....T..$.R
         3844  +|    256: 04 74 54 f5 04 f4 c5 95 84 e4 f4 34 15 34 51 91   .tT........4.4Q.
         3845  +|    272: 00 50 02 90 f1 74 54 e4 14 24 c4 52 04 74 54 f5   .P...tT..$.R.tT.
         3846  +|    288: 04 f4 c5 95 85 25 45 24 94 d1 70 f0 50 02 30 f1   .....%E$..p.P.0.
         3847  +|    304: 94 54 e4 14 24 c4 52 04 65 45 33 55 84 24 94 e4   .T..$.R.eE3U.$..
         3848  +|    320: 15 25 91 70 e0 50 02 30 f1 94 54 e4 40 0f 38 0f   .%.p.P.0..T.@.8.
         3849  +|    336: 30 0f 28 0f 20 0f 18 0f 10 0f 08 0f 00 0e f8 0e   0.(. ...........
         3850  +|    352: f0 0e e8 0e e0 00 00 00 00 00 00 00 00 00 00 00   ................
         3851  +| page 6 offset 20480
         3852  +|   3808: 06 24 03 00 12 02 01 01 06 23 03 00 12 02 01 01   .$.......#......
         3853  +|   3824: 06 22 03 00 12 02 01 01 06 21 03 00 12 03 01 01   .........!......
         3854  +|   3840: 06 20 03 00 12 03 01 01 06 1f 03 00 12 03 01 01   . ..............
         3855  +|   3856: 06 1e 03 00 12 03 01 01 06 1d 03 00 12 03 01 01   ................
         3856  +|   3872: 06 1c 03 00 12 03 01 01 06 1b 03 00 12 02 01 01   ................
         3857  +|   3888: 06 1a 03 00 12 02 01 01 06 19 03 00 12 02 01 01   ................
         3858  +|   3904: 06 18 03 00 12 02 01 01 06 17 03 00 12 02 01 01   ................
         3859  +|   3920: 06 16 03 00 12 02 01 01 06 15 03 00 12 02 01 01   ................
         3860  +|   3936: 06 14 03 00 12 02 01 01 06 13 03 00 12 02 01 01   ................
         3861  +|   3952: 06 12 03 00 12 02 01 01 06 11 03 00 12 02 01 01   ................
         3862  +|   3968: 06 10 03 00 12 02 01 01 06 0f 03 00 12 02 01 01   ................
         3863  +|   3984: 06 0e 03 00 12 02 01 01 06 0d 03 00 12 02 01 01   ................
         3864  +|   4000: 06 0c 03 00 12 02 01 01 06 0b 03 00 12 02 01 01   ................
         3865  +|   4016: 06 0a 03 00 12 02 01 01 06 09 03 00 12 03 01 01   ................
         3866  +|   4032: 06 08 03 00 12 03 01 01 06 07 03 00 12 03 01 01   ................
         3867  +|   4048: 06 06 03 00 12 01 01 01 06 05 03 00 12 01 01 01   ................
         3868  +|   4064: 06 04 03 00 12 01 01 01 06 03 03 00 12 05 01 01   ................
         3869  +|   4080: 06 02 03 00 12 05 01 01 06 01 03 00 12 05 01 01   ................
         3870  +| page 7 offset 24576
         3871  +|      0: 0a 00 00 00 01 0f f4 00 0f f4 52 59 11 05 05 00   ..........RY....
         3872  +|     16: 17 0f 19 44 45 42 55 47 58 4e 4f 43 41 53 45 10   ...DEBUGXNOCASE.
         3873  +|     32: 04 05 00 17 0f 17 44 45 42 55 47 58 52 54 52 49   ......DEBUGXRTRI
         3874  +|     48: 4d 20 03 05 00 35 0f 19 43 4f 4d 50 49 4c 45 52   M ...5..COMPILER
         3875  +|     64: 3d 63 6c 61 6e 67 2d 36 2e 30 2e 30 58 42 49 4e   =clang-6.0.0XBIN
         3876  +|     80: 41 52 59 20 02 05 00 35 0f 19 43 4f 4d 50 49 4c   ARY ...5..COMPIL
         3877  +|     96: 45 52 3d 63 6c 61 6e 67 2d 36 2e 30 2e 30 58 4e   ER=clang-6.0.0XN
         3878  +|    112: 4f 43 41 53 45 1f 01 05 00 35 0f 17 43 4f 4d 50   OCASE....5..COMP
         3879  +|    128: 49 4c 45 52 3d 63 6c 61 6e 67 2d 36 2e 30 2e 30   ILER=clang-6.0.0
         3880  +|    144: 58 52 54 52 49 4d 0d 00 00 00 24 0e e0 00 0f 6f   XRTRIM....$....o
         3881  +|    160: 6e 74 65 6e 74 05 43 52 45 41 54 45 20 54 41 42   ntent.CREATE TAB
         3882  +|    176: 4c 45 20 27 74 31 5f 63 6f 6e 74 65 6e 74 27 28   LE 't1_content'(
         3883  +|    192: 69 64 20 49 4e 54 45 47 45 52 20 50 52 49 4d 41   id INTEGER PRIMA
         3884  +|    208: 52 59 20 4b 45 59 2c 20 63 30 2c 20 63 31 2c 20   RY KEY, c0, c1, 
         3885  +|    224: 63 32 29 69 04 07 17 19 19 01 81 2d 74 61 62 6c   c2)i.......-tabl
         3886  +|    240: 65 74 31 5f 69 64 78 74 31 5f 69 64 78 04 43 52   et1_idxt1_idx.CR
         3887  +|    256: 45 41 54 45 20 54 41 42 4c 45 20 27 74 31 5f 69   EATE TABLE 't1_i
         3888  +|    272: 64 78 27 28 73 65 67 69 64 2c 20 74 65 72 6d 2c   dx'(segid, term,
         3889  +|    288: 20 70 67 6e 6f 2c 20 50 52 49 4d 41 52 59 20 4b    pgno, PRIMARY K
         3890  +|    304: 45 59 28 73 65 67 69 64 2c 20 74 65 72 6d 29 29   EY(segid, term))
         3891  +|    320: 20 57 49 54 48 4f 55 54 20 52 4f 57 49 44 55 03    WITHOUT ROWIDU.
         3892  +|    336: 07 17 1b 1b 01 81 01 74 61 62 6c 65 74 31 5f 64   .......tablet1_d
         3893  +|    352: 61 74 61 74 31 5f 64 61 74 61 03 43 52 45 41 54   atat1_data.CREAT
         3894  +|    368: 45 20 54 41 42 4c 45 20 27 74 31 5f 64 61 74 61   E TABLE 't1_data
         3895  +|    384: 27 28 69 64 20 49 4e 54 45 47 45 52 20 50 52 49   '(id INTEGER PRI
         3896  +|    400: 4d 41 52 59 20 4b 45 59 2c 20 62 6c 6f 63 6b 20   MARY KEY, block 
         3897  +|    416: 42 4c 4f 42 29 38 02 06 17 11 11 08 5f 74 61 62   BLOB)8......_tab
         3898  +|    432: 6c 65 74 31 74 31 43 52 45 41 54 45 20 56 49 52   let1t1CREATE VIR
         3899  +|    448: 54 55 41 4c 20 54 41 42 4c 45 20 74 31 20 55 53   TUAL TABLE t1 US
         3900  +|    464: 49 4e 47 20 66 74 73 35 28 61 2c 62 2c 63 29 00   ING fts5(a,b,c).
         3901  +|    480: 00 00 39 00 00 00 00 00 00 00 00 00 00 00 00 00   ..9.............
         3902  +|   4080: 00 00 00 00 0b 03 1b 01 76 65 72 73 69 6f 6e 04   ........version.
         3903  +| end crash-fed6e90021ba5d.db
         3904  +}]} {}
         3905  +
         3906  +do_execsql_test 33.1 {
         3907  +  CREATE VIRTUAL TABLE t2 USING fts5vocab('t1','row');
         3908  +  CREATE VIRTUAL TABLE t3 USING fts5vocab('t1','col');
         3909  +  CREATE VIRTUAL TABLE t4 USING fts5vocab('t1','instance');
         3910  +}
         3911  +
         3912  +do_catchsql_test 33.2 {
         3913  +  SELECT * FROM t2;
         3914  +} {1 {database disk image is malformed}}
         3915  +
         3916  +do_catchsql_test 33.3 {
         3917  +  SELECT * FROM t2, t3, t4 WHERE t2.term=t3.term AND t3.term=t4.term;
         3918  +} {1 {database disk image is malformed}}
         3919  +
  3720   3920   
  3721   3921   sqlite3_fts5_may_be_corrupt 0
  3722   3922   finish_test
  3723   3923