Fix invalid BSON read bug in appendCommandStatusNoThrow

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • RnD Security 2025-03-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-100435 introduced a bug where a temporary BSONObj acquired from BSONObjBuilder is being read from even after the builder has modified its underlying buffer. This leads to a bad BSONElement type exception that gets thrown when reading from the stale temp BSONObj.

            Assignee:
            Erwin Pe
            Reporter:
            Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: