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 segfault when doing marking and doc is not a document node #1006

Merged
merged 1 commit into from
Dec 9, 2013
Merged

Fix segfault when doing marking and doc is not a document node #1006

merged 1 commit into from
Dec 9, 2013

Conversation

dbussink
Copy link
Contributor

This fixes the problem where the doc node can actually also be a
XML_DOCUMENT_FRAG_NODE. In that case it's structured like a node which
means it stores a VALUE inside _private.

This checks the type of the code and uses the correct marking for the
specific cases.

Fixes #939

This fixes the problem where the doc node can actually also be a
XML_DOCUMENT_FRAG_NODE. In that case it's structured like a node which
means it stores a VALUE inside _private.

This checks the type of the code and uses the correct marking for the
specific cases.

Fixes #939
@dbussink
Copy link
Contributor Author

Is there anything that would hold back this being merged? I've had several people confirm this fixes segfaults on Rubinius when using Nokogiri.

tenderlove added a commit that referenced this pull request Dec 9, 2013
…ocument_nodes

Fix segfault when doing marking and doc is not a document node
@tenderlove tenderlove merged commit c687b64 into sparklemotion:master Dec 9, 2013
@dbussink
Copy link
Contributor Author

dbussink commented Dec 9, 2013

@tenderlove Thanks for merging :).

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.

Different usage of _private inside xmlNode resulting in crashes
2 participants