The sqlite3VdbeExec function in vdbe.c in SQLite before 3.8.9 does not properly implement comparison operators, which allows context-dependent attackers to cause a denial of service (invalid free operation) or possibly have unspecified other impact via a crafted CHECK clause, as demonstrated by CHECK(0&O>O) in a CREATE TABLE statement.
https://www.sqlite.org/src/info/02e3c88fbf6abdcf3975fb0fb71972b0ab30da30
https://support.apple.com/HT205267
https://support.apple.com/HT205213
https://security.gentoo.org/glsa/201507-05
http://www.ubuntu.com/usn/USN-2698-1
http://www.securitytracker.com/id/1033703
http://www.securityfocus.com/bid/74228
http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
http://www.debian.org/security/2015/dsa-3252
http://seclists.org/fulldisclosure/2015/Apr/31
http://rhn.redhat.com/errata/RHSA-2015-1635.html
http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
http://lists.apple.com/archives/security-announce/2015/Sep/msg00005.html