Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Running into SSL memory leaks #16

Closed
HappyCerberus opened this issue May 7, 2020 · 1 comment
Closed

Running into SSL memory leaks #16

HappyCerberus opened this issue May 7, 2020 · 1 comment

Comments

@HappyCerberus
Copy link

Both ASAN and valgrind complain about memory leaks coming from libgit use of SSL.
I'm running libgit version 1.0.0.

==16329== 61,206 (1,488 direct, 59,718 indirect) bytes in 6 blocks are definitely lost in loss record 238 of 238
==16329==    at 0x483A7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==16329==    by 0x4E87D98: OPENSSL_malloc (mem.c:108)
==16329==    by 0x4E2EC09: asn1_item_ex_combine_new (tasn_new.c:182)
==16329==    by 0x4E2EC8F: ASN1_item_new (tasn_new.c:79)
==16329==    by 0x4EAB5E6: X509_parse_from_buffer (x_x509.c:160)
==16329==    by 0x4DB3E54: bssl::ssl_crypto_x509_session_cache_objects(ssl_session_st*) (ssl_x509.cc:304)
==16329==    by 0x4DBE3EA: bssl::tls13_process_certificate(bssl::SSL_HANDSHAKE*, bssl::SSLMessage const&, bool) (tls13_both.cc:316)
==16329==    by 0x4DC04F2: do_read_server_certificate (tls13_client.cc:556)
==16329==    by 0x4DC04F2: bssl::tls13_client_handshake(bssl::SSL_HANDSHAKE*) (tls13_client.cc:778)
==16329==    by 0x4D96207: do_tls13 (handshake_client.cc:794)
==16329==    by 0x4D96207: bssl::ssl_client_handshake(bssl::SSL_HANDSHAKE*) (handshake_client.cc:1759)
==16329==    by 0x4D94625: bssl::ssl_run_handshake(bssl::SSL_HANDSHAKE*, bool*) (handshake.cc:676)
==16329==    by 0x4DAC600: SSL_do_handshake (ssl_lib.cc:890)
==16329==    by 0x4D115CB: openssl_connect (openssl.c:647)
@HappyCerberus
Copy link
Author

Sorry, wrong place to create this.

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

No branches or pull requests

1 participant