Skip to content
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

Memory leak found with RSA method #26

Open
tatsuhiro-t opened this issue Sep 6, 2019 · 2 comments
Open

Memory leak found with RSA method #26

tatsuhiro-t opened this issue Sep 6, 2019 · 2 comments

Comments

@tatsuhiro-t
Copy link
Contributor

The default RSA method calls static rsa_ossl_finish to free BN_MONT_CTX_free objects.
If neverbleed RSA method is used, this function is not called, thus these objects are leaked.
The proposed fix is tatsuhiro-t@003de52

@tatsuhiro-t
Copy link
Contributor Author

Note that I found this memory leak when I run TLS client. I'm not sure server is also affected.

@kazuho
Copy link
Member

kazuho commented Sep 9, 2019

Thank for reporting the issue as well as providing a fix.

Yeah I think this would be an issue on the server-side as well, if the server discards RSA keys while running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants