[SERVER-35596] "max" field of the createCollection command should be sanitized prior to being interpreted as a long long Created: 14/Jun/18  Updated: 29/Oct/23  Resolved: 05/Jul/18

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

Type: Bug Priority: Major - P3
Reporter: Maria van Keulen Assignee: Sean Tao
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-12813 Overflow when converting double value... Open
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2018-07-02, Storage NYC 2018-07-16
Participants:
Linked BF Score: 15

 Description   

Presently, the "max" field that is passed to createCollection is not checked to be within bounds of long long representation prior to being converted to a long long. One fix for this is to use the safeNumberLong() function where we parse the value.



 Comments   
Comment by Githook User [ 05/Jul/18 ]

Author:

{'name': 'Sean Tao', 'email': 'sean.tao@10gen.com'}

Message: SERVER-35596 "max" field of the createCollection command should be sanitized prior to being interpreted as a long long
Branch: master
https://github.com/mongodb/mongo/commit/f984e86d78387e77f6268e1006f57bac74119386

Generated at Thu Feb 08 04:40:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.