Namespace parsing in commands code must reject embedded null bytes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 3.5.1
    • Affects Version/s: None
    • Component/s: MapReduce, Write Ops
    • None
    • Fully Compatible
    • ALL
    • Query 2016-11-21, Query 2016-12-12, Query 2017-01-23
    • 0
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A BSONElement of type String has a pointer+length implementation and therefore may contain an embedded null byte. However, in parsing we often interpret the string as null terminated, resulting in a different namespace that is considered valid later in the execution of the command. Such operations should fail with a useful message during parsing.

              Assignee:
              David Storch
              Reporter:
              David Storch
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: