Details
-
Task
-
Status: Closed
-
Major - P3
-
Resolution: Won't Do
-
None
-
None
-
Security 2020-02-24, Security 2020-03-09, Security 2020-03-23
Description
Currently it does not. readCString probably should too, but at least UTF8 isn't part of it's name.
Example failing test:
TEST(BSONValidateFast, InvalidUTF8) {
|
BSONObj x = BSON("invalidUTF8" << "\xFF"); // this byte should never be in well-formed utf8.
|
ASSERT_NOT_OK(validateBSON(x.objdata(), x.objsize()));
|
}
|
Attachments
Issue Links
- documents
-
SERVER-27426 validateBSON should assert that Array elements have indexes from 0...n
-
- Closed
-
- duplicates
-
SERVER-21753 Improve UTF-8 validation of BSON documents
-
- Closed
-
- related to
-
SERVER-51083 Problem with regex index bounds
-
- Closed
-
-
SERVER-29466 Cannot query over fields containing invalid UTF-8
-
- Closed
-