auditFormat BSON writes incomplete bson

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.1, 4.3.1
    • Affects Version/s: 4.2.0
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Security 2019-09-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Mark Benvenuto
              Reporter:
              Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: