mongoc_handshake_data_append is not thread-safe

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.11.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Multiple threads could execute mongoc_handshake_data_append concurrently, causing undefined behavior. _mongoc_handshake_freeze() isn't thread-safe either, although it updates a global variable.

      mongoc_handshake_data_append is an undocumented function intended for closely integrated drivers like PHPC, but it should be safe to use regardless.

              Assignee:
              Evgeni Dobranov (Inactive)
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: