In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.
https://usn.ubuntu.com/4394-1/
https://usn.ubuntu.com/4205-1/
https://lists.debian.org/debian-lts-announce/2019/01/msg00009.html
https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/1756349
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6964
http://www.securityfocus.com/bid/103466
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00050.html