Memory leak in php_phongo_zval_to_bson_value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 1.14.0-beta1, 1.14.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: