BinDataType enum has the range of 0 to 255. But when we read the subtype byte from a BSON object as signed values, the arithmetic can result in huge numbers. Casting it to the enum can be out of range, resulting in undefined behaviors.
Casting value from a byte can be out of range for BinDataType
- Assignee:
-
Yuhong Zhang
- Reporter:
-
Yuhong Zhang
- Votes:
-
0 Vote for this issue - Watchers:
-
7 Start watching this issue
- Created:
- Updated:
- Resolved: