-
Notifications
You must be signed in to change notification settings - Fork 8k
Fixed bug #78577 #4731
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
Fixed bug #78577 #4731
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