SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if billions of bytes are used in a string argument to a C API.
https://kb.cert.org/vuls/id/720344
https://www.sqlite.org/cves.html
https://sqlite.org/releaselog/3_39_2.html
https://security.netapp.com/advisory/ntap-20220915-0009/
https://blog.trailofbits.com/2022/10/25/sqlite-vulnerability-july-2022-library-api/