Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigDecimal can be provoked into a big infinite loop #2390

Closed
rjnienaber opened this issue Dec 30, 2014 · 2 comments
Closed

BigDecimal can be provoked into a big infinite loop #2390

rjnienaber opened this issue Dec 30, 2014 · 2 comments

Comments

@rjnienaber
Copy link

From: http://jira.codehaus.org/browse/JRUBY-3887. OutOfMemoryError on 1.7.18 and JRuby 9000 also fails to pass the test.

The attached file tests that the BigDecimal security fix has been applied (to the MRI interpreter). MRI returns almost immediately. JRuby appears to go into an infinite loop.

/opt/jruby/bin/jruby bigdecimal_segfault_fix_test.rb
Loaded suite test/unit/bigdecimal_segfault_fix_test
Started
... never terminates.

@kares
Copy link
Member

kares commented Jun 4, 2015

unfortunately the JIRA links no longer work ... if anyone can provide the attached files tests here, pls do.

@headius
Copy link
Member

headius commented Oct 14, 2015

The files are lost to time and space, unfortunately. We did patch around recent BigDecial parsing bugs that affected the JVM, MRI, and other runtimes, so hopefully we got this one.

@headius headius closed this as completed Oct 14, 2015
@headius headius added this to the Invalid or Duplicate milestone Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants