Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-101

BSON cstring with null bytes should not be allowed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • # Replies:
      0
    • Last comment by Customer:
      false

      Description

      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, ...)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                barrie Barrie Segal
                Reporter:
                barrie Barrie Segal
                Participants:
                Last commenter:
                Ian Whalen
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  6 years, 38 weeks, 2 days ago
                  Date of 1st Reply: