aboutsummaryrefslogtreecommitdiff
path: root/test/printf.test
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-05-23 19:58:07 +0000
committerdrh <drh@noemail.net>2020-05-23 19:58:07 +0000
commitdd6c33d372f3b83f4fe57904c2bd5ebba5c38018 (patch)
tree0c0e539e9b90f1af7e108d9a974677727b81cdd6 /test/printf.test
parent8e50d65aaf255c6db0631cfab8dc2b5329b5bb08 (diff)
downloadsqlite-dd6c33d372f3b83f4fe57904c2bd5ebba5c38018.tar.gz
sqlite-dd6c33d372f3b83f4fe57904c2bd5ebba5c38018.zip
Limit the "precision" of floating-point to text conversions in the printf()
function to 100,000,000. Fix for ticket [23439ea582241138]. FossilOrigin-Name: d08d3405878d394e08e5d3af281246edfbd81ca74cc8d16458808591512fb93d
Diffstat (limited to 'test/printf.test')
-rw-r--r--test/printf.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/printf.test b/test/printf.test
index d099da8fa..d6acacb0f 100644
--- a/test/printf.test
+++ b/test/printf.test
@@ -3777,4 +3777,11 @@ foreach ::iRepeat {0 1} {
}
}
+# 2020-05-23
+# ticket 23439ea582241138
+#
+do_execsql_test printf-16.1 {
+ SELECT printf('%.*g',2147483647,0.01);
+} {0.01}
+
finish_test