summaryrefslogtreecommitdiffstats
path: root/Lib/test/floating_points.txt
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-01-12 22:23:56 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-01-12 22:23:56 (GMT)
commit8efef5ce9f6c0dfd2cb4720b61a37bbdfdb5e30e (patch)
tree749d0392efbc8ef53bd5f9bc22a25a41c8b4ba6d /Lib/test/floating_points.txt
parentefa45f35b529a61aceb4e1266ded7a0b268b0c17 (diff)
downloadcpython-8efef5ce9f6c0dfd2cb4720b61a37bbdfdb5e30e.zip
cpython-8efef5ce9f6c0dfd2cb4720b61a37bbdfdb5e30e.tar.gz
cpython-8efef5ce9f6c0dfd2cb4720b61a37bbdfdb5e30e.tar.bz2
Issue #7632: Fix a problem with _Py_dg_strtod that could lead to
crashes in debug builds, for certain long numeric strings corresponding to subnormal values.
Diffstat (limited to 'Lib/test/floating_points.txt')
-rw-r--r--Lib/test/floating_points.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/floating_points.txt b/Lib/test/floating_points.txt
index 70d21ea..539073d 100644
--- a/Lib/test/floating_points.txt
+++ b/Lib/test/floating_points.txt
@@ -1019,3 +1019,10 @@
+43723334984997307E-26
+10182419849537963E-24
-93501703572661982E-26
+
+# A value that caused a crash in debug builds for Python >= 2.7, 3.1
+# See http://bugs.python.org/issue7632
+2183167012312112312312.23538020374420446192e-370
+
+# Another value designed to test a corner case of Python's strtod code.
+0.99999999999999999999999999999999999999999e+23