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 argument typechecking in Text.new, CDATA.new, and Schema.from_document #2920

Merged
merged 9 commits into from
Jul 5, 2023

Conversation

flavorjones
Copy link
Member

@flavorjones flavorjones commented Jul 5, 2023

What problem is this PR intended to solve?

Hackerone user nmb-se (Mikael Borg) reported an issue with typechecking arguments to XML::Text.new that could lead to a segfault.

This PR fixes the typechecking for Text.new as well as similar problems in CDATA.new and Schema.from_document in both the C and the Java implementations.

Related to #2825.

Have you included adequate test coverage?

Yes!

Does this change affect the behavior of either the C or the Java implementations?

Both implementations have been updated.

@flavorjones flavorjones changed the title Fix some parameter typechecking Fix some argument typechecking in Text.new, CDATA.new, and Schema.from_document Jul 5, 2023
@flavorjones flavorjones changed the title Fix some argument typechecking in Text.new, CDATA.new, and Schema.from_document Fix argument typechecking in Text.new, CDATA.new, and Schema.from_document Jul 5, 2023
@flavorjones flavorjones added the topic/memory Segfaults, memory leaks, valgrind testing, etc. label Jul 5, 2023
@flavorjones flavorjones merged commit 2fe4871 into main Jul 5, 2023
@flavorjones flavorjones mentioned this pull request Jul 5, 2023
7 tasks
@flavorjones flavorjones added this to the v1.15.x patch releases milestone Jul 5, 2023
@flavorjones
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/memory Segfaults, memory leaks, valgrind testing, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant