SQLite

View Ticket
Login
2016-11-23
19:40
Take care not to try to generate code for the ATTACH and DETACH commands if there were syntax errors during parsing. Fix for ticket [2f1b168ab4d4844] (check-in: f8cf7ff1 user: drh tags: branch-3.15)
2016-11-11
03:40 Fixed ticket [2f1b168a]: Crash following syntax error on DETACH plus 5 other changes (artifact: 0a7d72a5 user: drh)
03:37
Take care not to try to generate code for the ATTACH and DETACH commands if there were syntax errors during parsing. Fix for ticket [2f1b168ab4d4844] (check-in: b0ff183b user: drh tags: trunk)
03:36 New ticket [2f1b168a] Crash following syntax error on DETACH. (artifact: e12fe9da user: drh)

Ticket Hash: 2f1b168ab4d484420f129e541ddccff8c170042e
Title: Crash following syntax error on DETACH
Status: Fixed Type: Code_Defect
Severity: Severe Priority: Immediate
Subsystem: Unknown Resolution: Fixed
Last Modified: 2016-11-11 03:40:01
Version Found In: 3.15.1
User Comments:
drh added on 2016-11-11 03:36:03:

The following (syntactically incorrect) statement causes a NULL pointer deference in SQLite 3.15.1:

DETACH x IS #1;

The problem was introduced by parser changes associated with the introduction of the row-value logic in check-in [ddb5f0558c445699] on 2016-09-07. The problem first appeared in SQLite 3.15.0.