<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18:18 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-3523] Some return values not considered in mongoc_stream_tls_openssl_new</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3523</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;While investigating the top stack frame in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3522&quot; title=&quot;Stack smashing detected connecting to multiple replica set members with TLS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3522&quot;&gt;&lt;del&gt;CDRIVER-3522&lt;/del&gt;&lt;/a&gt;, I noticed that some return values in &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.16.1/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c#L670&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;mongoc_stream_tls_openssl_new&lt;/tt&gt;&lt;/a&gt; are not considered.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://man7.org/linux/man-pages/man3/inet_pton.3.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;inet_pton()&lt;/tt&gt;&lt;/a&gt; may return -1 on error, but the code considers all non-zero return values as success.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;X509_VERIFY_PARAM_set1_ip_asc&lt;/tt&gt; and &lt;a href=&quot;https://www.openssl.org/docs/man1.0.2/man3/X509_VERIFY_PARAM_set1_host.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;X509_VERIFY_PARAM_set1_host&lt;/tt&gt;&lt;/a&gt; return 1 and 0 for success and failure, respectively.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;There may be more issues, but these are just two that stood out to me while walking through the code and I wanted to log an issue to make a note of it.&lt;/p&gt;

&lt;p&gt;I&apos;m using 1.16.1 as the affects version here since the code seems to have been unchanged from the older libmongoc version reported in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3522&quot; title=&quot;Stack smashing detected connecting to multiple replica set members with TLS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3522&quot;&gt;&lt;del&gt;CDRIVER-3522&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1131169">CDRIVER-3523</key>
            <summary>Some return values not considered in mongoc_stream_tls_openssl_new</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                            <label>new-eng</label>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 5 Feb 2020 21:46:50 +0000</created>
                <updated>Fri, 10 Feb 2023 16:07:20 +0000</updated>
                                            <version>1.16.1</version>
                                                    <component>tls</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1131142">CDRIVER-3522</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-4575</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6n3r:</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>