-
Notifications
You must be signed in to change notification settings - Fork 62
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
Can't parse large XML #150
Comments
naitoh
added a commit
to naitoh/rexml
that referenced
this issue
Jun 19, 2024
…exceeds a certain size, have it removed. See: ruby#150
naitoh
added a commit
to naitoh/rexml
that referenced
this issue
Jun 20, 2024
…exceeds a certain size, have it removed. See: ruby#150
naitoh
added a commit
to naitoh/rexml
that referenced
this issue
Jun 22, 2024
…exceeds a certain size, have it removed. See: ruby#150 --------- Co-authored-by: Sutou Kouhei <kou@clear-code.com>
naitoh
added a commit
to naitoh/rexml
that referenced
this issue
Jun 22, 2024
…exceeds a certain size, have it removed. See: ruby#150 --------- Co-authored-by: Sutou Kouhei <kou@clear-code.com>
kou
added a commit
that referenced
this issue
Jun 22, 2024
GitHub: fix GH-150 If a parsed XML is later than `2 ** 31 - 1`, we can't parse it. Because `StringScanner`s position is stored as `int`. We can avoid the restriction by dropping large parsed content. Co-authored-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example, we can't parse an XML of Wikipedia: https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-pages-articles.xml.bz2
(
ruby -r datasets -e 'Datasets::Wikipedia.new.each {}'
will reproduce this.)We need to drop parsed content in
StringScanner
ofREXML::Source
to parse large XML.The text was updated successfully, but these errors were encountered: