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

Fix #35 OOM on malformed input #92

Closed
wants to merge 2 commits into from

Conversation

ashawley
Copy link
Member

This takes the fix from #44 by @som-snytt, but I've also added 2 unit tests to document the specific bug in #35.

I needed access to scala.xml.Source, so I modified the package declarations in the tests.

A unit test follows the convention of muting console output when the event reader is under test, see #82.

ashawley and others added 2 commits February 15, 2016 13:23
* src/test/scala/scala/xml/XMLTest.scala (issue35): New test.

* src/test/scala/scala/xml/pull/XMLEventReaderTest.scala
(issue35): New test.
* src/main/scala/scala/xml/parsing/MarkupParserCommon.scala
(xAttributeValue): Check for eof in while loop.
@dancek
Copy link

dancek commented Apr 21, 2016

Is there a timeline for releasing a version with this fix?

@biswanaths
Copy link
Contributor

Let me go through the the pull request. Also would be helpful ( also generally to any pull request) if people or two did some code review of the pull request.

If everything looks fine, I will merge and do a release as quick as possible.

@dancek
Copy link

dancek commented Apr 21, 2016

I've built, run and read the code and can verify that the fix is correct. The unit tests look correct, too, but I haven't run them.

@lespea
Copy link

lespea commented Apr 21, 2016

I've been running it in prod for a month or so with no issues so far

@ashawley
Copy link
Member Author

Thank you @lespea and @dancek for the review, and for reporting that it has been working for you.

@biswanaths
Copy link
Contributor

Thank you @ashawley , @dancek , @lespea for your time and valuable inputs. I merged the pull request.

Expect to do a release a soon.

Thanks again for the help.

@biswanaths biswanaths closed this Apr 21, 2016
@ashawley ashawley deleted the fix-35-out-of-memory branch June 24, 2016 20:07
@ashawley ashawley restored the fix-35-out-of-memory branch June 24, 2016 20:07
@ashawley ashawley deleted the fix-35-out-of-memory branch June 24, 2016 20:09
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.

5 participants