Skip to content

Add missing error check on BN_CTX_new()#21061

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

Add missing error check on BN_CTX_new()#21061
ndossche wants to merge 1 commit intophp:PHP-8.4from
ndossche:clesss-27

Conversation

@ndossche
Copy link
Member

@ndossche ndossche commented Jan 28, 2026

If this fails, then the big numbers will be allocated outside of the context, leading to leaks.

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

If this fails, then the big numbers will be allocated outside of the
context, leading to leaks.
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