/ View Ticket
Login
Ticket UUID: 093420fc0eb7cba77b05230b2e79f27c74d91dcc
Title: Virtual Machine references an uninitialized register
Status: Fixed Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Unknown Resolution: Fixed
Last Modified: 2018-04-06 12:55:10
Version Found In: 3.23.0
User Comments:
drh added on 2018-04-05 11:47:39:

In the following SQL, the virtual machine references an uninitialized register. This is harmless, but it still needs to be fixed.

CREATE TABLE t1(b, c, PRIMARY KEY(b,c)) WITHOUT ROWID;
CREATE UNIQUE INDEX t1b ON t1(b);
UPDATE t1 SET b=1 WHERE b='';

This problem has existed in the code since support for WITHOUT ROWID tables was added with SQLite 3.8.2 (2013-12-06). The problem was discovered by OSSFuzz.