A BSONElement of type String has a pointer + length implementation and therefore may contain an embedded null byte. BSONObj::getStringField uses valuestr in its implementation, which can lead us to incorrectly interpret the string as null terminated.
- causes
-
SERVER-67028 Fix 12% perf loss in validateBSON due to BSONElement changes
- Closed