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

JRuby hangs parsing "&" #837

Closed
bhollis opened this issue Jan 18, 2013 · 0 comments
Closed

JRuby hangs parsing "&" #837

bhollis opened this issue Jan 18, 2013 · 0 comments

Comments

@bhollis
Copy link

bhollis commented Jan 18, 2013

Under JRuby 1.7.2 this:

Nokogiri::XML("&")

Will cause JRuby to hang in some sort of infinite loop until you get a java.lang.OutOfMemoryError. It can actually be any entity reference, not necessarily &. I know it's not valid XML, but I'd rather get an error or an empty document than hang the JVM.

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

2 participants