The BSON validation function ValidateBuffer::_updateFrame() provides an error message that indicates an invalid decoded field length. It may be helpful to also include the decoded length in the message text.
Additionally, we do not have targeted test coverage for this error in our BSON validation unit tests. The closest we have is BSONValidate::RandomData but this is not ideal.
- is related to
-
SERVER-44401 Speed up validateBSON
- Closed
- related to
-
SERVER-90977 rename test function in bson_validate_test.cpp
- Closed