<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:12:19 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-1377] bson_ascii_strtoll() does not detect ERANGE errors</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1377</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://github.com/mongodb/libbson/blob/1.3.5/src/bson/bson-json.c#L561&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;_bson_json_read_string()&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;https://github.com/mongodb/libbson/blob/1.3.5/src/bson/bson-string.c#L668&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;bson_ascii_strtoll()&lt;/tt&gt;&lt;/a&gt; is called and &lt;tt&gt;errno&lt;/tt&gt; is later compared with &lt;tt&gt;ERANGE&lt;/tt&gt; to check for an out-of-range value. Internally, &lt;tt&gt;bson_ascii_strtoll()&lt;/tt&gt; never actually sets &lt;tt&gt;ERANGE&lt;/tt&gt; and appears to have no logic for detecting range errors.&lt;/p&gt;</description>
                <environment></environment>
        <key id="300940">CDRIVER-1377</key>
            <summary>bson_ascii_strtoll() does not detect ERANGE errors</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Jul 2016 22:07:33 +0000</created>
                <updated>Wed, 18 Aug 2021 18:22:07 +0000</updated>
                            <resolved>Tue, 15 Nov 2016 21:50:54 +0000</resolved>
                                    <version>1.3.5</version>
                                    <fixVersion>1.5.0</fixVersion>
                                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1488369" author="xgen-internal-githook" created="Mon, 30 Jan 2017 19:22:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: Merge branch &apos;r1.5&apos;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;r1.5:&lt;br/&gt;
  post-release bump&lt;br/&gt;
  1.5.4 Release&lt;br/&gt;
  post-release bump&lt;br/&gt;
  1.5.3 Release&lt;br/&gt;
  post-release bump&lt;br/&gt;
  Release 1.5.2&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1982&quot; title=&quot;MinGW: wrong ifdef check for strerror_r&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1982&quot;&gt;&lt;del&gt;CDRIVER-1982&lt;/del&gt;&lt;/a&gt; fix ifdef for strerror_s with mingw&lt;br/&gt;
  post-release bump&lt;br/&gt;
  1.5.1 Release&lt;br/&gt;
  post-release bump&lt;br/&gt;
  1.5.0 Release&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1044&quot; title=&quot;Enable -Werror for clang on Evergreen&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1044&quot;&gt;&lt;del&gt;CDRIVER-1044&lt;/del&gt;&lt;/a&gt; Fix unknown-pragmas warning on clang3.4&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1910&quot; title=&quot;Fedora installation instructions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1910&quot;&gt;&lt;del&gt;CDRIVER-1910&lt;/del&gt;&lt;/a&gt; Fedora installation instructions&lt;br/&gt;
  post-release bump&lt;br/&gt;
  1.5.0-rc6 Release&lt;br/&gt;
  update NEWS&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1923&quot; title=&quot;libbson install memory.3 and clock.3 manpages&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1923&quot;&gt;&lt;del&gt;CDRIVER-1923&lt;/del&gt;&lt;/a&gt; libbson installs manpages without bson_ prefix&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1377&quot; title=&quot;bson_ascii_strtoll() does not detect ERANGE errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1377&quot;&gt;&lt;del&gt;CDRIVER-1377&lt;/del&gt;&lt;/a&gt; use INT64_MAX, not LLONG_MAX, in bson_stroll&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/b48a4a82b74fa5f589bda41639c5b7e95ea6f5b9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/b48a4a82b74fa5f589bda41639c5b7e95ea6f5b9&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1488360" author="xgen-internal-githook" created="Mon, 30 Jan 2017 19:21:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1377&quot; title=&quot;bson_ascii_strtoll() does not detect ERANGE errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1377&quot;&gt;&lt;del&gt;CDRIVER-1377&lt;/del&gt;&lt;/a&gt; use INT64_MAX, not LLONG_MAX, in bson_stroll&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/2738c74d3c5a2fdaeef2de603d2e32534ad8f76e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/2738c74d3c5a2fdaeef2de603d2e32534ad8f76e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1442441" author="xgen-internal-githook" created="Fri, 25 Nov 2016 17:06:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: Use consistent string parsing for Timestamp and UTCDateTime init&lt;/p&gt;

&lt;p&gt;bson_ascii_strtoll() will support range checking in libbson 1.5.0 (&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1377&quot; title=&quot;bson_ascii_strtoll() does not detect ERANGE errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1377&quot;&gt;&lt;del&gt;CDRIVER-1377&lt;/del&gt;&lt;/a&gt;), so there is no longer any benefit of using _atoi64() on Windows. This will make parsing consistent across both platforms, since _atoi64() does not report errors for non-integer strings (e.g. &quot;1.2&quot;).&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/commit/1f785d2cb101f6ac322b0218eb8cb27019078bfb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver/commit/1f785d2cb101f6ac322b0218eb8cb27019078bfb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1435008" author="xgen-internal-githook" created="Tue, 15 Nov 2016 21:50:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1377&quot; title=&quot;bson_ascii_strtoll() does not detect ERANGE errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1377&quot;&gt;&lt;del&gt;CDRIVER-1377&lt;/del&gt;&lt;/a&gt; use INT64_MAX, not LLONG_MAX, in bson_stroll&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/f307befe8e66c210a5844a552cf3b6b1731bdd20&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/f307befe8e66c210a5844a552cf3b6b1731bdd20&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1434615" author="bjori" created="Tue, 15 Nov 2016 16:43:51 +0000"  >&lt;p&gt;This &lt;a href=&quot;https://evergreen.mongodb.com/task/libbson_rhel_55_release_compile_877c4652bc032e960b712d7829fa1b8fe47c5552_16_11_14_21_46_20&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;broke build on RHEL5.5&lt;/a&gt;&lt;/p&gt;


&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[2016/11/14 17:13:04.041] tests/test-string.c: In function &apos;test_bson_ascii_strtoll&apos;:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[2016/11/14 17:13:04.041] tests/test-string.c:258: error: &apos;LLONG_MAX&apos; undeclared (first use in this function)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[2016/11/14 17:13:04.041] tests/test-string.c:258: error: (Each undeclared identifier is reported only once&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[2016/11/14 17:13:04.041] tests/test-string.c:258: error: for each function it appears in.)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[2016/11/14 17:13:04.041] tests/test-string.c:259: error: &apos;LLONG_MIN&apos; undeclared (first use in this function)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[2016/11/14 17:13:04.044] make: *** [tests/test_libbson-test-string.o] Error 1&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[2016/11/14 17:13:04.045] Command failed: exit status 2&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="1433798" author="behackett" created="Mon, 14 Nov 2016 21:46:10 +0000"  >&lt;p&gt;Changed fix version to 1.5, since this just landed in master.&lt;/p&gt;</comment>
                            <comment id="1433793" author="xgen-internal-githook" created="Mon, 14 Nov 2016 21:42:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1377&quot; title=&quot;bson_ascii_strtoll() does not detect ERANGE errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1377&quot;&gt;&lt;del&gt;CDRIVER-1377&lt;/del&gt;&lt;/a&gt; bson_stroll detects range errors&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/877c4652bc032e960b712d7829fa1b8fe47c5552&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/877c4652bc032e960b712d7829fa1b8fe47c5552&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1323383" author="jmikola@gmail.com" created="Wed, 13 Jul 2016 22:16:52 +0000"  >&lt;p&gt;Based on my testing, out-of-range values are returned &quot;9223372036854775807&quot; and &quot;-9223372036854775808&quot; (i.e. largest and smallest 64-bit signed integers) are parsed correctly. Behavior is broken for values with greater magnitude:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&quot;9223372036854775808&quot; is parsed as -9223372036854775808&lt;/li&gt;
	&lt;li&gt;&quot;-9223372036854775809&quot; is parsed as 9223372036854775807&lt;/li&gt;
	&lt;li&gt;&quot;18446744073709551615&quot; is parsed as -1&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1854386">PHPC-1957</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="300981">CDRIVER-1378</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsnjnr:</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>