<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:08:57 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>[MONGOCRYPT-555] _finalize is missing call to bson_destroy in an error case</title>
                <link>https://jira.mongodb.org/browse/MONGOCRYPT-555</link>
                <project id="17481" key="MONGOCRYPT">Libmongocrypt</project>
                    <description>&lt;p&gt;In &lt;tt&gt;_finalize&lt;/tt&gt; in &lt;tt&gt;mongocrypt-ctx-encrypt.c&lt;/tt&gt;, the error case starting on &lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/2ec9c3c4ff94f76bb51a5b4cc2fe9190457d6541/src/mongocrypt-ctx-encrypt.c#L2011-L2012&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;line 2011 (in commit &lt;tt&gt;2ec9c3&lt;/tt&gt;)&lt;/a&gt; appears to be missing &lt;tt&gt;bson_destroy (&amp;amp;converted)&lt;/tt&gt;. This is because in the case where &lt;tt&gt;ectx-&amp;gt;explicit&lt;/tt&gt; is false on line 1985 and the &lt;tt&gt;bson_t converted&lt;/tt&gt; is initialized on line 1996, if the call to &lt;tt&gt;_mongocrypt_buffer_to_bson&lt;/tt&gt; fails on line 2009, &lt;tt&gt;_finalize&lt;/tt&gt; returns without having destroyed the &lt;tt&gt;converted&lt;/tt&gt;&#160;instance.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2285212">MONGOCRYPT-555</key>
            <summary>_finalize is missing call to bson_destroy in an error case</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="9">Done</resolution>
                                        <assignee username="kyle.kloberdanz@mongodb.com">Kyle Kloberdanz</assignee>
                                    <reporter username="zachary.espiritu@mongodb.com">Zachary Espiritu</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Mar 2023 19:51:03 +0000</created>
                <updated>Thu, 27 Apr 2023 13:21:08 +0000</updated>
                            <resolved>Thu, 27 Apr 2023 13:21:08 +0000</resolved>
                                                    <fixVersion>1.8.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5378678" author="xgen-internal-githook" created="Wed, 26 Apr 2023 18:51:04 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Kyle Kloberdanz&apos;, &apos;email&apos;: &apos;kyle.kloberdanz@mongodb.com&apos;, &apos;username&apos;: &apos;kkloberdanz&apos;}
&lt;p&gt;Message: Fix memory leak in _finalize (#630)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-555&quot; title=&quot;_finalize is missing call to bson_destroy in an error case&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-555&quot;&gt;&lt;del&gt;MONGOCRYPT-555&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Missing a call to bson_destroy(&amp;amp;converted) after converted as initialized.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/09bdceb5f7a17882e15f3a86f9090b6a558eee2f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/09bdceb5f7a17882e15f3a86f9090b6a558eee2f&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_21957" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Binding Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22966"><![CDATA[Not Needed]]></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|hr6i7r:f0wg</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>