Memory leak if Serializable::bsonSerialize() returns keys with null bytes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.2.9
    • Affects Version/s: 1.2.8
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This leak was introduced in 84dbfe0 (PHPC-891). When throwing an exception for null bytes in public property names, we neglect to free obj_data if we were currently iterating through the hash of bsonSerialize()'s return value.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: