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 Leaks on Linux #37

Closed
Andrew-Lees11 opened this issue Feb 27, 2019 · 2 comments
Closed

Memory Leaks on Linux #37

Andrew-Lees11 opened this issue Feb 27, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@Andrew-Lees11
Copy link
Contributor

We had reports of Memory leaks when signing/verifying a with Swift-JWT. We recreated this on our own repo JWT along with encryption and decryption. This produced the following memory report: leaks.txt which highlights leaks at:

evp_key = .init(PEM_read_bio_PUBKEY(bio, nil, nil, nil))

This is due to the evp_key not being properly freed after it was referenced by:

var pkey_ctx = EVP_PKEY_CTX_new(evp_key, nil)

(Mirrored for private key).

There are also leaks in encrypt and decrypt where allocated memory from pointers wasn't being deallocated.

@Andrew-Lees11 Andrew-Lees11 self-assigned this Feb 27, 2019
@Andrew-Lees11
Copy link
Contributor Author

These leaks are fixed by PR #36

@Andrew-Lees11 Andrew-Lees11 added this to the 2019.04 milestone Feb 27, 2019
@Andrew-Lees11
Copy link
Contributor Author

Closing now fix has been merged and release in BlueRSA 1.0.24

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

No branches or pull requests

1 participant