Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Not Needed
Description
Problem Statement/Rationale
v := bsoncore.Value{
|
Type: bsontype.String,
|
Data: []byte("\x00\x00\x00\x00"), |
}
|
_, _ = v.StringValueOK()
|
This code will throw a panic, due to an invalid slice operation on
https://github.com/mongodb/mongo-go-driver/blob/master/x/bsonx/bsoncore/bsoncore.go#L825