SQLite

View Ticket
Login
Ticket Hash: e431c35542d00f80841f4dd2c044588c1a1ce912
Title: FTS database disk image is malformed for UTF-16 encoding
Status: Closed Type: Code_Defect
Severity: Critical Priority: Immediate
Subsystem: Unknown Resolution: Fixed
Last Modified: 2019-12-20 19:41:31
Version Found In: 3.30.0
User Comments:
mrigger added on 2019-12-20 17:03:18:

Consider the following test case:

PRAGMA encoding = 'UTF-16';
CREATE VIRTUAL TABLE vt0 USING fts5(c0);
INSERT INTO vt0 VALUES (x'3078');
INSERT INTO vt0(vt0) VALUES('integrity-check'); -- database disk image is malformed

Unexpectedly, the integrity check fails with an error "database disk image is malformed". This bug seems to be related to [cf36cb4e02].