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

Check for uninitialized intern in ServerDescription get_properties_hash

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.13.0
    • Affects Version/s: None
    • Component/s: None

      php_phongo_serverdescription_get_properties_hash() should return early if intern is uninitialized. After the call to 
      PHONGO_GET_PROPERTY_HASH_INIT_PROPS, there should be a check that intern->server_description is a non-zero pointer. See https://github.com/mongodb/mongo-php-driver/pull/1244#discussion_r683046524

            Assignee:
            tanli.su@mongodb.com Tanli Su (Inactive)
            Reporter:
            tanli.su@mongodb.com Tanli Su (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: