Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24128

Namespace parsing in commands code must reject embedded null bytes

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

      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@mongodb.com David Storch
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: