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

Memory leak in php_phongo_zval_to_bson_value

    • 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 original implementation of php_phongo_zval_to_bson_value from f167da9 for PHPC-1499 does not free the bson_t used to hold the intermediary result between zval conversion and bson_value_t extraction.

      This function was previously only used by ClientEncryption::encrypt() and decrypt(). The leak was discovered when implementing supports for the BulkWrite and Query comment options in PHPC-2049.

            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: