Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-1449

Ensure value is freed when bson_to_zval() encounters an error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.8
    • Fix Version/s: 1.6.9
    • Component/s: pecl-mongo
    • Labels:
      None
    • # Replies:
      5
    • Last comment by Customer:
      true
    • Sprint:
      PHP Sprint 19, PHP Sprint 21

      Description

      Currently, bson_to_zval() forgets to free its value zval in two places:

      • After recursing to decode a code scope and discovering that an exception was thrown
      • After encountering an unrecognized type and throwing an exception

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmikola Jeremy Mikola
              Reporter:
              jmikola Jeremy Mikola
              Participants:
              Last commenter:
              Rathi Gnanasekaran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                5 years, 10 weeks, 1 day ago
                Date of 1st Reply: