[SERVER-42110] uassert that the integer part of a v0 numeric KeyString value is less than 2^^53 Created: 08/Jul/19  Updated: 29/Oct/23  Resolved: 25/Jul/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.0-rc5, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: execution_intern_2019
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Execution Team 2019-07-29
Participants:

 Description   

It would never be legally encoded that the integerPart of a KeyString v0 numeric type uses more than 52 bits and also has a fractional part.

Uassert that integerPart is strictly less than 2^^53 (i.e. has no more than 52 bits of precision) if it also has a fractional part.



 Comments   
Comment by Githook User [ 26/Jul/19 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-42110 uassert that the integer part of a v0 numeric KeyString value is less than 2^53

(cherry picked from commit f60d85ed3082778dd4bacd9f555648215cce7d48)
Branch: v4.2
https://github.com/mongodb/mongo/commit/7b40c78e0eb5fe9a569d5273826da98ea38968ed

Comment by Githook User [ 25/Jul/19 ]

Author:

{'name': 'Louis Williams', 'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com'}

Message: SERVER-42110 uassert that the integer part of a v0 numeric KeyString value is less than 2^53
Branch: master
https://github.com/mongodb/mongo/commit/f60d85ed3082778dd4bacd9f555648215cce7d48

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