Details
Description
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.