<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:21:34 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-4662] Possible overflow parsing Decimal128 in extJSON with very large exponents</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4662</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;DRIVER-2651 recently added new BSON corpus tests for Decimal128 where the &lt;tt&gt;degenerate_extjson&lt;/tt&gt; representation uses very large exponent values.&lt;/p&gt;

&lt;p&gt;POC-ing these tests with PHPC resulted in several failures converting the degenerate extJSON to Canonical BSON. The code path in PHPC&apos;s test runner directly utilizes libbson&apos;s &lt;tt&gt;bson_new_from_json()&lt;/tt&gt; function.&lt;/p&gt;

&lt;p&gt;The spec tests and details of the PHPC failures can be found in &lt;a href=&quot;https://github.com/mongodb/specifications/pull/1432#issuecomment-1592128172&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/specifications#1432&lt;/a&gt;. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=matt.dale%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;matt.dale@mongodb.com&quot;&gt;matt.dale@mongodb.com&lt;/a&gt;&apos;s assessment from &lt;a href=&quot;https://mongodb.slack.com/archives/C72LB5RPV/p1686789749854299?thread_ts=1686783750.487309&amp;amp;cid=C72LB5RPV&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this #dbx-devs thread&lt;/a&gt; is as follows:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;As far as the failures, the ones that failed with&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;&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;-180000001364000000000000000000000000000000fe5f00&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;+180000001364000000000000000000000000000000000000&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;were expecting 0E+6111 but got 0E-6176.&lt;/p&gt;

&lt;p&gt;The ones that failed with&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;&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;-180000001364000000000000000000000000000000008000&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;+180000001364000000000000000000000000000000fedf00&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;were expecting 0E-6176 but got 0E+6111.&lt;/p&gt;

&lt;p&gt;Seems like it could be some kind of exponent overflow/underflow problem.&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="2369411">CDRIVER-4662</key>
            <summary>Possible overflow parsing Decimal128 in extJSON with very large exponents</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="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="13201">Fixed</resolution>
                                        <assignee username="josh.siegel@mongodb.com">Josh Siegel</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Jun 2023 15:05:09 +0000</created>
                <updated>Sat, 28 Oct 2023 11:27:49 +0000</updated>
                            <resolved>Mon, 24 Jul 2023 21:20:19 +0000</resolved>
                                                    <fixVersion>1.24.3</fixVersion>
                                    <component>Extended JSON</component>
                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5587890" author="xgen-internal-githook" created="Mon, 24 Jul 2023 21:07:47 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Joshua Siegel&apos;, &apos;email&apos;: &apos;39130209+joshbsiegel@users.noreply.github.com&apos;, &apos;username&apos;: &apos;joshbsiegel&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4662&quot; title=&quot;Possible overflow parsing Decimal128 in extJSON with very large exponents&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4662&quot;&gt;&lt;del&gt;CDRIVER-4662&lt;/del&gt;&lt;/a&gt; check for decimal128 exponent overflow (#1349)&lt;br/&gt;
Branch: r1.24&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e50a625211fcfcfd408ac8d315dc4e67e913524c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e50a625211fcfcfd408ac8d315dc4e67e913524c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5587879" author="xgen-internal-githook" created="Mon, 24 Jul 2023 21:03:47 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Joshua Siegel&apos;, &apos;email&apos;: &apos;39130209+joshbsiegel@users.noreply.github.com&apos;, &apos;username&apos;: &apos;joshbsiegel&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4662&quot; title=&quot;Possible overflow parsing Decimal128 in extJSON with very large exponents&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4662&quot;&gt;&lt;del&gt;CDRIVER-4662&lt;/del&gt;&lt;/a&gt; check for decimal128 exponent overflow (#1349)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/c3587f1dd4201b636107e82985d934d0f5e3e43b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/c3587f1dd4201b636107e82985d934d0f5e3e43b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5565035" author="jmikola@gmail.com" created="Thu, 13 Jul 2023 19:52:13 +0000"  >&lt;p&gt;When I originally reported this issue, the corpus tests were using &quot;999999999999&quot; as an exponent. Looking at what was ultimately merged in &lt;a href=&quot;https://github.com/mongodb/specifications/commit/c09f979ad296400552a98c9b784197ec648c2096&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/specificatiosn@c09f979&lt;/a&gt;, the corpus tests now use &quot;2147483647&quot;. I can confirm that the current tests pass in PHPC.&lt;/p&gt;

&lt;p&gt;I&apos;ve left a comment on the original PR in &lt;a href=&quot;https://github.com/mongodb/specifications/pull/1432#issuecomment-1634816465&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/specifications#1432&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I&apos;ll defer to you to decide if the original tests with &quot;999999999999&quot; should have passed, as &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=matt.dale%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;matt.dale@mongodb.com&quot;&gt;matt.dale@mongodb.com&lt;/a&gt; did suggest it was an overflow/underflow error.&lt;/p&gt;</comment>
                            <comment id="5564674" author="JIRAUSER1273938" created="Thu, 13 Jul 2023 18:12:25 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jmikola%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;jmikola@mongodb.com&quot;&gt;jmikola@mongodb.com&lt;/a&gt; - we tried both running the spec tests &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/compare/master...joshbsiegel:mongo-c-driver:cdriver-4662?expand=1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; and writing some of our own tests &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/compare/master...kevinAlbs:mongo-c-driver:cdriver-4662?expand=1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; and were unable to reproduce the error in the C Driver. Is there anything additional that you are doing in the PHPC test runner?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2391297">PHPC-2259</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2346198">DRIVERS-2651</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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6jho:</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>