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

Dropping QE collection with nonexistent state collections & NULL error pointer causes segmentation fault

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.23.1
    • None
    • None
    • None

    Description

      Summary

      Dropping a QE-encrypted collection using mongoc_collection_drop(coll, NULL) results in a segmentation fault if any of the associated state collections (eg. ESC, ECC, and ECOC) do not exist. The cause is a NULL dereference on the error pointer in drop_with_opts_with_encryptedFields() when checking whether the attempt to drop the state collection failed with a MONGOC_SERVER_ERR_NS_NOT_FOUND.

      Environment

      libmongoc v1.22.1, compiled with -DENABLE_CLIENT_SIDE_ENCRYPTION=ON

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: