Skip to content

Retire safe double processing utilities#9021

Merged
enebo merged 2 commits intojruby:masterfrom
enebo:topic/remove_safe_double
Oct 6, 2025
Merged

Retire safe double processing utilities#9021
enebo merged 2 commits intojruby:masterfrom
enebo:topic/remove_safe_double

Conversation

@enebo
Copy link
Member

@enebo enebo commented Oct 6, 2025

This came about when an old version of Java had a CVE and would end up in an endless loop processing a number (numbers?). This was fixed in Java 1.6.

Here is a reference to it being fixed:
https://www.exploringbinary.com/fpupdater-fixes-the-java-2-2250738585072012e-308-bug/

This should get rid of multiple scans and simplify the overall codepath of converting a string to a double/bigdecimal.

enebo added 2 commits October 6, 2025 09:34
This came about when an old version of Java had a CVE and would
end up in an endless loop processing a number (numbers?).  This was
fixed in Java 1.6.

Here is a reference to it being fixed:
https://www.exploringbinary.com/fpupdater-fixes-the-java-2-2250738585072012e-308-bug/

This should get rid of multiple scans and simplify the overall codepath
of converting a string to a double/bigdecimal.
@enebo enebo added this to the JRuby 10.0.3.0 milestone Oct 6, 2025
Copy link
Member

@headius headius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Love deleting code.

@enebo enebo merged commit 70e1dc1 into jruby:master Oct 6, 2025
73 of 75 checks passed
@enebo enebo deleted the topic/remove_safe_double branch October 6, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants