[SERVER-45361] Sanitize random seeds for mongo shell Created: 03/Jan/20  Updated: 29/Oct/23  Resolved: 08/Jan/20

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

Type: Bug Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
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: Service Arch 2020-01-13
Participants:
Linked BF Score: 95

 Description   

We use numberLong() instead of safeNumberLong() to get random seeds from shell users. This means the shell will crash if they pass in NaN, infinity, or the like.



 Comments   
Comment by Githook User [ 08/Jan/20 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@mongodb.com', 'username': 'bcaimano'}

Message: SERVER-45361 Sanitize random seeds for mongo shell
Branch: master
https://github.com/mongodb/mongo/commit/11911e624ececb7546350f79c30f2abd45af5d92

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