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

Infinite loop in XMLEncoder.nextAutoPrefix() #251

Open
PaoloConte opened this issue Nov 7, 2024 · 1 comment
Open

Infinite loop in XMLEncoder.nextAutoPrefix() #251

PaoloConte opened this issue Nov 7, 2024 · 1 comment
Labels
indev The issue is fixed/implemented in the dev branch

Comments

@PaoloConte
Copy link

There seems to be an infinite loop in XMLEncoder.nextAutoPrefix(), nextAutoPrefixNo is never incremented

Thanks

@pdvrieze pdvrieze added the indev The issue is fixed/implemented in the dev branch label Nov 7, 2024
@pdvrieze
Copy link
Owner

pdvrieze commented Nov 7, 2024

This should be fixed in the dev branch. As a workaround you can manually specify the prefixes on the attributes so that it doesn't hit this code. Also, as conflicting namespace attributes are only possible with attributes, the issue only occurs with attributes (although tag/attribute prefix mismatch will also trigger it if that tag did have a namespace attribute to declare its namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
indev The issue is fixed/implemented in the dev branch
Projects
None yet
Development

No branches or pull requests

2 participants