Skip to content
Commit c0724851 authored by Zim's avatar Zim Committed by android-build-team Robot
Browse files

DO NOT MERGE Fix floating point to text conversion overflow

Any precision >=2147483647 will cause a buffer overflow.
For instance, executing the following statement will segfault

select (printf('%.2147483647G',0.01));

Later sqlite versions fixed this by hard-coding a hard-limit of
100k million on the precision of floating point to text conversions
https://sqlite.org/src/info/d08d3405878d394e

We fix this on earlier versions by setting the compile time flag
to the same 100k million

Bug: 153352319
Test: builds
Change-Id: Ied86cf81f0064da9d3d963ecf943894bc1ae1a93
(cherry picked from commit 4810d35f)
parent 1a3f0b9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment