-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
Not Needed
-
None
-
C Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Summary
_Changes added by https://jira.mongodb.org/browse/CDRIVER-6419 _
Does not provide correct behaviour.
Environment
Please provide the version of the C / CXX driver.
Please provide the host OS, version, and architecture (example: Windows 10 64-bit x86).
Please provide the C / CXX compiler and version.
If applicable, please attach the full output of the cmake command used to configure the C / CXX driver.
If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
How to Reproduce
Steps to reproduce. If possible, please include a Short, Self Contained, Correct (Compilable), Example
Fix added by commit, cause incorrect decfloat handling.
https://github.com/mongodb/mongo-c-driver/commit/54a7e9f372bd8e1953298b60393b07b042360a87
Incorrect output - for cases:
FAIL good [12345678901234567890123456789012340.0] expected=1.234567890123456789012345678901234E+34 got=NaN
FAIL signed [-12345678901234567890123456789012340.0] expected=-1.234567890123456789012345678901234E+34 got=NaN
FAIL 36 digits [12345678901234567890123456789012340.000] expected=1.234567890123456789012345678901234E+34 got=NaN
FAIL dropped 1 no radix [12345678901234567890123456789012341] expected=ERR got=NaN
FAIL dropped 1 w/ radix [12345678901234567890123456789012341.0] expected=ERR got=NaN
FAIL dropped digit after radix [1234567890123456789012345678901234.5] expected=ERR got=NaN
FAIL dropped 1 signed [-12345678901234567890123456789012341.0] expected=ERR got=NaN
FAIL garbage [abc] expected=ERR got=NaN
FAIL 34 digits E6112 [1234567890123456789012345678901234E6112] expected=ERR got=NaN
FAIL fractional 35 digits [0.12345678901234567890123456789012345] expected=ERR got=NaN
FAIL 35 nines [99999999999999999999999999999999999] expected=ERR got=NaN
FAIL leading zeros over precision [000012345678901234567890123456789012345] expected=ERR got=NaN
FAIL leading zeros over precision nonzero tail [000012345678901234567890123456789012341] expected=ERR got=NaN
FAIL leading zeros 35 digits [000012345678901234567890123456789012345] expected=ERR got=NaN
FAIL leading zeros 35 digits radix [000012345678901234567890123456789012345.0] expected=ERR got=NaN
FAIL leading zeros fractional over precision [00001.2345678901234567890123456789012345] expected=ERR got=NaN
~
Additional Background
Please provide any additional background information that may be helpful in diagnosing the bug.
- related to
-
CDRIVER-6419 Misindexed exactness check in decimal128 string parsing
-
- Closed
-