Skip to content

openssl: Use proper error propagation when X509_dup() fails in openssl_x509_read()#21953

Open
ndossche wants to merge 1 commit intophp:PHP-8.4from
ndossche:clesss-34
Open

openssl: Use proper error propagation when X509_dup() fails in openssl_x509_read()#21953
ndossche wants to merge 1 commit intophp:PHP-8.4from
ndossche:clesss-34

Conversation

@ndossche
Copy link
Copy Markdown
Member

@ndossche ndossche commented May 5, 2026

Otherwise x509 field is NULL and can cause a NULL deref which is UB (and causes a SEGV).

Disclaimer: this was found by an experimental static-dynamic hybrid analyser I'm working on.

…l_x509_read()

Otherwise x509 field is NULL and can cause a NULL deref which is UB (and
causes a SEGV).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant