The class doesn't validate or transform the input and tries to convert it to integer type using the unsafe BSONElement::numberInt() method. We should switch to BSONElement::safeNumberInt().
Safely handle large numbers in KeyPattern
- Assignee:
-
Yuhong Zhang
- Reporter:
-
Yuhong Zhang
- Votes:
-
0 Vote for this issue - Watchers:
-
3 Start watching this issue
- Created:
- Updated:
- Resolved: