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

Add assertions for non-null client and pool parameters

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.24.0
    • Affects Version/s: None
    • Component/s: libmongoc

      After CDRIVER-3723, client and pool constructors will return NULL in more situations (e.g. invalid topology). In applications that were not already checking for NULL return values, this could lead to unexpected segfaults. We should consider adding assertions to functions that take client and pool parameters to mitigate this risk.

            Assignee:
            josh.siegel@mongodb.com Josh Siegel
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: