BSON cstring with null bytes should not be allowed

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Component/s: None
    • None

      The BSON spec defines two string types:

      • The "string" type is a sequence of bytes encoded with a length. This sequence can include null bytes since the length of the sequence is encoded.
      • The "cstring" type is a null terminated sequence of bytes. It is not encoded with a length. The sequence ends with a null byte so it can not include null bytes.

      This ticket is to validate that drivers do not allow sequences including null bytes wherever a cstring is required (e.g. document keys, database and collection name, regular expressions, ...)

              Assignee:
              Barrie Segal (Inactive)
              Reporter:
              Barrie Segal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: