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

Always recalculate field name length when encoding BSON

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.3
    • Affects Version/s: 1.2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      PHP 5.x

      On PHP 5.x, phongo_zval_to_bson() uses the length provided by PHP's HashTable API when appending a BSON field. If the field contains multiple null bytes, the driver might append those null bytes to the BSON buffer, thereby shifting the remainder of the document's data.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: