Skip to content

openssl: Fix error propagation in csr exports#21403

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

openssl: Fix error propagation in csr exports#21403
ndossche wants to merge 1 commit intophp:PHP-8.4from
ndossche:clesss-35

Conversation

@ndossche
Copy link
Member

If the print fails, then the write is still executed, resulting in a partial export without any way of the user knowing this happened. Fix this by only returning true if all writes succeed.

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

If the print fails, then the write is still executed, resulting in a
partial export without any way of the user knowing this happened.
Fix this by only returning true if all writes succeed.
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