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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.23.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved: