Skip to content

Remove dead code from openssl_spki_new() implementation#18752

Merged
ndossche merged 1 commit into
php:masterfrom
ndossche:ossl-nonsense-1
Jun 10, 2025
Merged

Remove dead code from openssl_spki_new() implementation#18752
ndossche merged 1 commit into
php:masterfrom
ndossche:ossl-nonsense-1

Conversation

@ndossche
Copy link
Copy Markdown
Member

@ndossche ndossche commented Jun 3, 2025

If s is not NULL, the length can't be <= 0 because we at least append spkac in the string, which is non-empty.
I noticed this condition because if it were actually possible to execute, then it would leak memory.

If s is not NULL, the length can't be <= 0 because we at least append
`spkac` in the string, which is non-empty.
I noticed this condition because if it were actually possible to
execute, then it would leak memory.
@ndossche ndossche merged commit dbabbe1 into php:master Jun 10, 2025
9 checks passed
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.

2 participants