SQLite

View Ticket
Login
2018-04-06
12:55 Fixed ticket [093420fc]: Virtual Machine references an uninitialized register plus 5 other changes (artifact: 31842ae5 user: drh)
2018-04-05
16:26
Fix an instance where an uninitialized VM register might be accessed. Fix for [093420fc0]. This problem was found by OSSFuzz. (check-in: a3b02db7 user: dan tags: trunk)
11:47 New ticket [093420fc] Virtual Machine references an uninitialized register. (artifact: 4524671d user: drh)

Ticket Hash: 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.