Comment 1Guilherme de Almeida Suckevicz
2020-01-15 14:06:36 UTC
Created mingw-sqlite tracking bugs for this issue:
Affects: epel-7 [bug 1791315]
Affects: fedora-all [bug 1791316]
Created sqlite tracking bugs for this issue:
Affects: fedora-all [bug 1791317]
Comment 2Huzaifa S. Sidhpurwala
2020-01-16 08:29:08 UTC
There seems to be a reproducer in the upstream commit:
[huzaifas@babylon ~]$ cat a.sql
CREATE TABLE v0 (a);
CREATE VIEW v2 (v3) AS WITH x1 AS (SELECT * FROM v2) SELECT v3 AS x, v3 AS y FROM v2;
SELECT * FROM v2;
[huzaifas@babylon ~]$ sqlite3 < a.sql
Segmentation fault (core dumped)
[huzaifas@babylon ~]$
Valgrind suggests that the problem is conditional jump based on uninitialized value and corresponding OOB read.