[SERVER-45214] FieldParser::extractNumber fails ubsan for NaNs Created: 17/Dec/19  Updated: 29/Oct/23  Resolved: 22/Dec/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Bug Priority: Major - P3
Reporter: Geert Bosch Assignee: Geert Bosch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-12-30
Participants:
Linked BF Score: 94

 Description   

extractNumber does check the type of the BSONElement before extracting its value, but it does not defend against non-finite floating point numbers.



 Comments   
Comment by Githook User [ 22/Dec/19 ]

Author:

{'name': 'Geert Bosch', 'email': 'geert.bosch@mongodb.com', 'username': 'GeertBosch'}

Message: SERVER-45214 FieldParser::extractNumber fails ubsan for NaNs
Branch: master
https://github.com/mongodb/mongo/commit/230c60a4f74e09bd5b5dd55112e4ae37be4e94f3

Generated at Thu Feb 08 05:08:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.