<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:15:36 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-2561] mongoc_handshake_data_append is not thread-safe</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2561</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Multiple threads could execute mongoc_handshake_data_append concurrently, causing undefined behavior. _mongoc_handshake_freeze() isn&apos;t thread-safe either, although it updates a global variable.&lt;/p&gt;

&lt;p&gt;mongoc_handshake_data_append is an undocumented function intended for closely integrated drivers like PHPC, but it should be safe to use regardless.&lt;/p&gt;</description>
                <environment></environment>
        <key id="514481">CDRIVER-2561</key>
            <summary>mongoc_handshake_data_append is not thread-safe</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="evgeni.dobranov@mongodb.com">Evgeni Dobranov</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 21 Mar 2018 14:00:37 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:02 +0000</updated>
                            <resolved>Wed, 13 Jun 2018 15:54:16 +0000</resolved>
                                                    <fixVersion>1.11.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1919661" author="xgen-internal-githook" created="Wed, 13 Jun 2018 15:48:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;edobranov&apos;, &apos;name&apos;: &apos;Evgeni Dobranov&apos;, &apos;email&apos;: &apos;evobranov@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2561&quot; title=&quot;mongoc_handshake_data_append is not thread-safe&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2561&quot;&gt;&lt;del&gt;CDRIVER-2561&lt;/del&gt;&lt;/a&gt; make handshake_data_append threadsafe&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8c519bc3425bd40a70562418cea5b558674478ac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8c519bc3425bd40a70562418cea5b558674478ac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1912750" author="kevin.albertson" created="Wed, 6 Jun 2018 18:26:27 +0000"  >&lt;p&gt;For some context, drivers send an &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/mongodb-handshake/handshake.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;initial handshake&lt;/a&gt; on the first connection to a server. This handshake sends metadata to the server to identify the connection in logs, &lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/db.currentOp/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;currentOp&lt;/a&gt;, or &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/manage-the-database-profiler/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;profiling&lt;/a&gt;. Drivers that wrap around the C driver can customize the &lt;tt&gt;client.driver&lt;/tt&gt; and &lt;tt&gt;client.platform&lt;/tt&gt; fields of the handshake metadata. They call &lt;tt&gt;mongoc_handshake_data_append&lt;/tt&gt; to do so.&lt;/p&gt;</comment>
                            <comment id="1842419" author="jesse" created="Thu, 22 Mar 2018 18:52:38 +0000"  >&lt;p&gt;mongoc_init should create a mutex that protects this data, then anything that touches it must hold the mutex&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htki9j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>