lestrrat-go / libxml2

Interface to libxml2, with DOM interface
MIT License
230 stars 55 forks source link

*XMLNode.NextSibling() panics when the node is the last sibling. #13

Closed galdor closed 8 years ago

galdor commented 8 years ago

In node/dom.go, *XMLNode.NextSibling() uses XMLNextSibling(), but does not check that the returned uintptr is different from 0 before calling WrapNode(), resulting in a panic when the node has no next sibling.