Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79443

Fix legacy shell crash if an auto-encryption function is called on closed Mongo connection

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2023-08-07

      SERVER-77600 added the ability to set and toggle auto-encryption on an existing Mongo connection. This added new functions to the Mongo object namely: set/unsetAutoEncryption(), toggleAutoEncryption(), isAutoEncryptionEnabled(), and getAutoEncryptionOptions().  If these functions are called after the connection was closed, it results in a segmentation fault, since these functions do not check the private data shared pointer before dereferencing it.  The proper behavior is to throw an exception.

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: