Skip to content

Fix error check on X509V3_EXT_print()#21047

Closed
ndossche wants to merge 1 commit intophp:PHP-8.4from
ndossche:clesss-25
Closed

Fix error check on X509V3_EXT_print()#21047
ndossche wants to merge 1 commit intophp:PHP-8.4from
ndossche:clesss-25

Conversation

@ndossche
Copy link
Copy Markdown
Member

The docs I found of this function appear to be wrong, as it can also return -1 on failure.
See also openssl/openssl#29793

This was found by a hybrid static-dynamic analyser that looks for inconsistent handling of error checks in bindings.

The docs I found of this function appear to be wrong, as it can also
return -1 on failure.
See also openssl/openssl#29793
Copy link
Copy Markdown
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense for older versions.

@ndossche ndossche closed this in 5684949 Apr 3, 2026
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.

3 participants