<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08:39 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-170] bson_iterator_bin_data returns a pointer 4 bytes before the actual data</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-170</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;It seams that the &apos;BSON_BIN_BINARY_OLD&apos; test is swapped between length and data function :&lt;/p&gt;


&lt;p&gt;MONGO_EXPORT int bson_iterator_bin_len( const bson_iterator *i ) {&lt;br/&gt;
    return ( bson_iterator_bin_type( i ) == BSON_BIN_BINARY_OLD )&lt;br/&gt;
           ? bson_iterator_int_raw( i ) - 4&lt;br/&gt;
           : bson_iterator_int_raw( i );&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;MONGO_EXPORT const char *bson_iterator_bin_data( const bson_iterator *i ) {&lt;br/&gt;
    return ( bson_iterator_bin_type( i ) == BSON_BIN_BINARY_OLD )&lt;br/&gt;
           ? bson_iterator_value( i ) + 9&lt;br/&gt;
           : bson_iterator_value( i ) + 5;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
        <key id="51479">CDRIVER-170</key>
            <summary>bson_iterator_bin_data returns a pointer 4 bytes before the actual data</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="gjmurakami">Gary Murakami</assignee>
                                    <reporter username="mogice">mog</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Sep 2012 11:46:38 +0000</created>
                <updated>Wed, 3 May 2017 22:14:02 +0000</updated>
                            <resolved>Wed, 14 Nov 2012 06:43:37 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="168178" author="mogice" created="Wed, 26 Sep 2012 12:14:07 +0000"  >&lt;p&gt;Sorry my bad, I checked the code, it&apos;s fine. The size I get as the first 4 bytes is obviously from my buffer.&lt;br/&gt;
It is misleading as it looks like the bson binary header but it definitely is on my side. &lt;/p&gt;

&lt;p&gt;This can be closed, sorry for the inconvenience.&lt;/p&gt;</comment>
                    </comments>
                    <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrj2mv:</customfieldvalue>

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