mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
9b18b215bb
In our code to write public keys to a string, for some unfathomable
reason since 253f0f160e
, we would allocate a memory BIO, then
set the NOCLOSE flag on it, extract its memory buffer, and free it.
Then a little while later we'd free the memory buffer with
BUF_MEM_free().
As of openssl 1.1 this doesn't work any more, since there is now a
BIO_BUF_MEM structure that wraps the BUF_MEM structure. This
BIO_BUF_MEM doesn't get freed in our code.
So, we had a memory leak!
Is this an openssl bug? Maybe. But our code was already pretty
silly. Why mess around with the NOCLOSE flag here when we can just
keep the BIO object around until we don't need the buffer any more?
Fixes bug 20553; bugfix on 0.0.2pre8
4 lines
152 B
Plaintext
4 lines
152 B
Plaintext
o Minor bugfixes (memory leak):
|
|
- Work around a memory leak in OpenSSL 1.1 when encoding public keys.
|
|
Fixes bug 20553; bugfix on 0.0.2pre8.
|