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

auditFormat BSON writes incomplete bson

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1, 4.3.1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      Security 2019-09-23
    • Case:

      Description

      When auditFormat BSON is used, a BSONObj is converted to std::string via const char* string. A const char* string's length is computed based on a null byte, this may lead to incorrect results for BSONObjs.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.benvenuto Mark Benvenuto
              Reporter:
              mark.benvenuto Mark Benvenuto
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: