Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2561

mongoc_handshake_data_append is not thread-safe

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

      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@mongodb.com Evgeni Dobranov
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: