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

Add assertions for non-null client and pool parameters

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.24.0
    • None
    • libmongoc

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: