diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-06-28 13:24:07 -0700 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-06-28 15:24:07 -0500 |
commit | f21ffff2d2bc916b70e66810b4582a604f03965f (patch) | |
tree | dde2b3e3415cb61692247cd23d14811128a50660 /tests/test_warnings.py | |
parent | 491fd7cc5aefff8064039d073331b41a2f606a63 (diff) | |
download | cryptography-f21ffff2d2bc916b70e66810b4582a604f03965f.tar.gz cryptography-f21ffff2d2bc916b70e66810b4582a604f03965f.tar.bz2 cryptography-f21ffff2d2bc916b70e66810b4582a604f03965f.zip |
Fix for leaking memory in EllipticCurvePublicNumbers.public_key() (#3732)
* Test for leaking memory in EllipticCurvePublicNumbers.public_key()
* Fix the memory leak
As far as I can tell, from spelunking in the OpenSSL source (as you do), EC_KEY_set_public_key_affine_coordinates doesn't take ownership of "x" or "y". https://github.com/openssl/openssl/blob/master/crypto/ec/ecp_smpl.c#L362-L420 is the place in the source I found that actually uses "x" and "y".
* Unused imports
Diffstat (limited to 'tests/test_warnings.py')
0 files changed, 0 insertions, 0 deletions