-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Segmentation fault in ext/simplexml/simplexml.c #15837
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
Comments
Not sure if that's a SimpleXML issue, but tentatively marking as such. Anyhow, PHP-8.3 is affected as well, and maybe older branches too. |
Look like a null pointer is passed to php-src/ext/simplexml/simplexml.c Line 2498 in 2ced1c9
/cc @nielsdos |
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end." – Henry Spencer I still assume that is an issue with |
Maybe, I don't know anything about simplexml. :) |
I'll have a look. It reproduces on 8.2 too. |
We should check if the iterator data is still valid, because if it isn't, then the type info is UNDEF, but the pointer value may be dangling.
* PHP-8.2: Fix GH-15837: Segmentation fault in ext/simplexml/simplexml.c
* PHP-8.3: Fix GH-15837: Segmentation fault in ext/simplexml/simplexml.c
Description
The following code:
Resulted in this output:
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: