<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:27 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-3228] Investigate whether allocated PCCERT_CONTEXT is freed</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3228</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;While looking into &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3227&quot; title=&quot;PCCERT_CONTEXT may go out of scope in optimized build&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3227&quot;&gt;&lt;del&gt;CDRIVER-3227&lt;/del&gt;&lt;/a&gt; I realized that the &lt;tt&gt;PCCERT_CONTEXT&lt;/tt&gt; pointer, which is initialized by &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certsetcertificatecontextproperty&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CertSetCertificateContextProperty&lt;/a&gt; in &lt;tt&gt;mongoc_secure_channel_setup_certificate_from_file&lt;/tt&gt;, is never freed.&lt;/p&gt;

&lt;p&gt;Based on &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/win32/seccrypto/example-c-program-getting-and-setting-certificate-properties&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this program example&lt;/a&gt; in Microsoft&apos;s documentation, it looks like we should free the pointer with &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certfreecertificatecontext&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CertFreeCertificateContext&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I do see that the allocated &lt;tt&gt;PCCERT_CONTEXT&lt;/tt&gt; is later passed to &lt;tt&gt;AcquireCredentialsHandle&lt;/tt&gt; via the &lt;tt&gt;SCHANNEL_CRED&lt;/tt&gt; struct, so perhaps it is ultimately freed later on. If so, there may be nothing to fix here.&lt;/p&gt;</description>
                <environment></environment>
        <key id="850174">CDRIVER-3228</key>
            <summary>Investigate whether allocated PCCERT_CONTEXT is freed</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>
                    </labels>
                <created>Wed, 10 Jul 2019 15:16:17 +0000</created>
                <updated>Fri, 10 Feb 2023 16:07:15 +0000</updated>
                                                                            <component>libmongoc</component>
                    <component>tls</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="850155">CDRIVER-3227</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|hr6n0n:</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>