Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3311

Possible crash if server reports maxBsonObjectSize of 0

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • libmongoc

    Description

      Per this assert we might crash if the server were to report maxBsonObjectSize 0.

      This would not happen in practice, since to-date the server only ever reports maxBsonObjectSize of 16MB. But if for some reason it ever did (perhaps a non-data bearing node), and validate with a mock server test that we handle this correctly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: