-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Connection Management
-
None
When reading a message from the server, check for various ways the OP_REPLY message header may be corrupted and throw MongoInternalException if any are found:
- message length < reply header length
- message length > max message length
- num documents returned < 0
- message length - reply header length < num documents returned * minimum BSON document length
- related to
-
DRIVERS-276 Drivers must raise an error if response messageLength > ismaster.maxMessageSizeBytes
- Closed