-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix engine cleanup error handling #21971
Fix engine cleanup error handling #21971
Conversation
Error handling in engine_cleanup_add_first/last was broken and caused memory leaks.
Would it be possible to make test for this? |
The test that found it, is already there. I did it using Unfortunately the feature |
@openssl/committers ping... |
This pull request is ready to merge |
Error handling in engine_cleanup_add_first/last was broken and caused memory leaks. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #21971)
Merged to all branches. Thanks! |
Error handling in engine_cleanup_add_first/last was broken and caused memory leaks. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl#21971) (cherry picked from commit 00f2efc)
The merge to 3.0 has broken the 3.0 branch
as the declaration of
|
ah sorry, now I see 3.1 is actually also broken, since the struct ref is incremented below, while master incremended it before. |
(I didn't check 3.1; I saw the 3.0 failure on the fuzz results on another PR) |
quite possible that 3.1 will compile, but the ref-counting is weird on master, that confused me a bit... |
Error handling in engine_cleanup_add_first/last was broken and caused memory leaks. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl/openssl#21971) Signed-off-by: fly2x <fly2x@hitls.org>
Error handling in engine_cleanup_add_first/last was broken and caused memory leaks. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl/openssl#21971) (cherry picked from commit 00f2efc) Signed-off-by: fly2x <fly2x@hitls.org>
Error handling in engine_cleanup_add_first/last was broken and caused memory leaks. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl/openssl#21971) (cherry picked from commit 00f2efc) Signed-off-by: fly2x <fly2x@hitls.org>
Error handling in engine_cleanup_add_first/last was broken and caused memory leaks. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from openssl#21971) (cherry picked from commit 00f2efc)
Error handling in engine_cleanup_add_first/last was broken and caused memory leaks.