Always recalculate field name length when encoding BSON

XMLWordPrintableJSON

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

      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:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: