[SERVER-14131] parseNumberFromString cannot parse floating point numbers with hex base specifiers on Solaris and Windows Created: 02/Jun/14  Updated: 14/Apr/16  Resolved: 04/Apr/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 2.7.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Shaun Verch Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: polish
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-14110 Inconsistent handling of numerical ba... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 13 (04/22/16)
Participants:

 Description   

See https://github.com/mongodb/mongo/blob/r2.7.1/src/mongo/base/parse_number_test.cpp#L300

The issue is that the system libraries that parseNumberFromString uses do not correctly parse these values. For example: "0x10.1" is not parseable on these platforms.

User visible impact:

  • command line parsing
  • JSON parsing
  • other?


 Comments   
Comment by Justin Cohler [ 04/Apr/16 ]

We intend to remove all hex doubles as they are non-standard before C++17

Comment by Githook User [ 31/Jul/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-14131 Fix initialization order
Branch: master
https://github.com/mongodb/mongo/commit/2431388bad083d427e36c554e77050d9a8854e23

Generated at Thu Feb 08 03:33:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.