-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ChaCha20Poly1305 memory leak #9255
Labels
Comments
Thanks for the report. While we chase this down, here is a reduced reproducer: import gc
from cryptography.hazmat.bindings._rust import FixedPool
class Foo:
def __init__(self):
self._pool = FixedPool(self._method)
def _method(self):
pass
while True:
Foo()
gc.collect() |
It appears we need to implement |
reaperhulk
added a commit
to reaperhulk/cryptography
that referenced
this issue
Jul 20, 2023
reaperhulk
added a commit
to reaperhulk/cryptography
that referenced
this issue
Jul 28, 2023
alex
pushed a commit
that referenced
this issue
Jul 28, 2023
* fix the memory leak in fixedpool fixes #9255 * simplify fix
reaperhulk
added a commit
to reaperhulk/cryptography
that referenced
this issue
Jul 29, 2023
* fix the memory leak in fixedpool fixes pyca#9255 * simplify fix
alex
pushed a commit
that referenced
this issue
Jul 29, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Cryptography 39.0.0 introduced a memory leak in the ChaCha20Poly1305 class. It is still present in the most recent release (41.0.2).
top
.Cryptography 38.0.4 - Memory usage remains constant.
Cryptography >= 39.0.0 - Memory usage increases until the process is killed.
The text was updated successfully, but these errors were encountered: