Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
Description
The bson parser uses strlen, not the length field, to get the length of the string. Thus, if you insert a valid UTF8 string like: "y\x00z", it will return "y".
> db.foo.insert(
{x:"y\x00z"})
> db.foo.find()