Skip to content

Ensure last chunk of XML data is parsed #547

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

Closed

Conversation

kellyo-cricut
Copy link

Fixes case where last chunk was skipped during parse

Appears some refactoring in this PR may have introduced this behavior.

I was unable to get the test suites running locally after following the "Getting Started" guide- Are there test cases that I can add somewhere to cover this? The bug is exhibited when parsing any XML document. I noticed this when parsing a document smaller than _chunkSize

Fixes case where last chunk was skipped during parse
@kateinoigakukun
Copy link
Member

Thanks! Could you add the test case here? https://github.com/swiftwasm/integration-tests

@kellyo-cricut
Copy link
Author

Thanks! Could you add the test case here? https://github.com/swiftwasm/integration-tests

I'm running in to a few issues setting up integration tests in that repo. Should I open an issue over there to troubleshoot or what is the preferred course of action? It doesn't look like any existing tests there use libxml2 and I'm not sure of the preferred way to set that up

@kateinoigakukun
Copy link
Member

BTW, it looks the lines are already upstreamed by swiftlang#3051
Maybe we should fix the upstream at first 🤔

@kellyo-cricut
Copy link
Author

I opened a PR upstream here: swiftlang#4683

@kellyo-cricut
Copy link
Author

kellyo-cricut commented Feb 3, 2023

Closing as that change was upstreamed and merged here: #571

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