[SERVER-70485] double indexMin defaults to lowest positive double Created: 11/Oct/22 Updated: 29/Oct/23 Resolved: 22/Nov/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Queryable Encryption |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Mark Benvenuto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Sprint: | Security 2022-10-31, Security 2022-11-28 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Scope std::numeric_limits<double>::min() is used in the following locations:
Background & Motivation
The index min/max has no impact on how double is encoded in getTypeInfoDouble. But it is applied to getMinCover when an infinite bound is specified: |
| Comments |
| Comment by Mark Benvenuto [ 22/Nov/22 ] |
|
Fixed with https://github.com/mongodb/mongo/commit/0d67266b5759f89dbf63b72d4d1172c7a421a4a2 |
| Comment by Kevin Albertson [ 10/Nov/22 ] |
|
This may still be an open issue. std::numeric_limits<double>::min() is used in the following locations:
Those may need to be changed to std::numeric_limits<double>::lowest() |