Conversation
|
Related to https://bugs.php.net/bug.php?id=70359 |
|
There's some similar code doing |
|
@nikic You are right, multiple times actually. Going to try to get it to segfault as well using XPath in the test-case. |
|
Triggering the copy pasted code in xpath.c does not lead to a segfault, so I think that @cmb69 assertion on the linked ticket is right, that the culprit is the invalid cast in |
|
@beberlei I sent you a patch to try as the type case in that method was intentional. It was used incorrectly tho in the dom_element_get_attribute_node method |
|
Can we get a status update here please ? |
|
So I wrote with @robrichards on this, and incorporated parts of a patch that he sent me. One problem is still that the previous code using So i kept my part of the patch that uses |
|
The fix is still not good, accessing |
|
There has not been any recent activity in this PR. It will automatically be closed in 7 days if no further action is taken. |
The
nsparentshould actually be thenodepalready from theDOMElement#getAttributeNode()call.Fixes https://bugs.php.net/bug.php?id=78577