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

Possible crash if server reports maxBsonObjectSize of 0

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: