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

mongoc_handshake_data_append is not thread-safe

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.11.0
    • None
    • libmongoc
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

            evgeni.dobranov@mongodb.com Evgeni Dobranov
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: