Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2089

Various bson_value_t memory leaks in ClientEncryption methods

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.14.0-beta1, 1.14.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The bson_value_t* keyid parameter to mongoc_client_encryption_create_datakey is always initialized and must be freed. This dates back to e65a933 for PHPC-1499.

      Additionally, the ClientEncryption::encrypt() and decrypt() methods have several leaks where bson_value_t structs are not freed (distinct from PHPC-2088). Those leaks date back to 4d7b35e and f0372a5.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: