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 over-consuming XML de-serialization in Golang #489

Merged
merged 1 commit into from
May 16, 2024

Conversation

mristin
Copy link
Contributor

@mristin mristin commented May 16, 2024

We read a token too much in unmarshalXxx functions. The bug went unnoticed as all our examples used indented XML, which eclipsed the over-consumption.

In this patch, we do not generate the unmarshalXxx, as they turn out to be redundant, and use readXxxWithLookahead to appropriately read the tokens without over-consumption.

We read a token too much in `unmarshalXxx` functions. The bug went
unnoticed as all our examples used indented XML, which eclipsed the
over-consumption.

In this patch, we do not generate the `unmarshalXxx`, as they turn out
to be redundant, and use `readXxxWithLookahead` to appropriately read
the tokens without over-consumption.
@mristin mristin merged commit 3b20999 into main May 16, 2024
7 checks passed
@mristin mristin deleted the mristin/Fix-golang-xmlization-for-overreading branch May 16, 2024 14:32
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.

1 participant