Simplified test case:

<blockquote><verbatim>
SELECT printf('%.*g',2147483647,0.01);


Affects all versions of SQLite since printf() was introduced in
version 3.8.3 (2014-02-03).