[tor-bugs] #22803 [Core Tor/Tor]: Memory leak in link-handshake/certs_ok_ed25519

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jul 3 19:53:01 UTC 2017


#22803: Memory leak in link-handshake/certs_ok_ed25519
------------------------------+--------------------------------
     Reporter:  nickm         |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.2.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  ???-backport
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 =================================================================
 ==24816==ERROR: LeakSanitizer: detected memory leaks

 Direct leak of 160 byte(s) in 1 object(s) allocated from:
     #0 0x7fe721373e60 in malloc (/lib64/libasan.so.3+0xc6e60)
     #1 0x5582ccbf96ea in tor_malloc_ src/common/util.c:150
     #2 0x5582ccbf9791 in tor_malloc_zero_ src/common/util.c:178
     #3 0x5582ccb7d8ae in tor_x509_cert_new__real src/common/tortls.c:677
     #4 0x5582cc61f504 in test_link_handshake_certs_ok
 src/test/test_link_handshake.c:232
     #5 0x5582cc783a78 in testcase_run_bare_ src/ext/tinytest.c:106
     #6 0x5582cc783f76 in testcase_run_forked_ src/ext/tinytest.c:190
     #7 0x5582cc783f76 in testcase_run_one src/ext/tinytest.c:248
     #8 0x5582cc785465 in tinytest_main src/ext/tinytest.c:435
     #9 0x5582cc3d7846 in main src/test/testing_common.c:319
     #10 0x7fe71e6c4400 in __libc_start_main (/lib64/libc.so.6+0x20400)

 Indirect leak of 3050 byte(s) in 58 object(s) allocated from:
     #0 0x7fe721373e60 in malloc (/lib64/libasan.so.3+0xc6e60)
     #1 0x7fe7204e03e7 in CRYPTO_malloc (/lib64/libcrypto.so.10+0x6e3e7)

 Indirect leak of 579 byte(s) in 1 object(s) allocated from:
     #0 0x7fe721373e60 in malloc (/lib64/libasan.so.3+0xc6e60)
     #1 0x5582ccbf96ea in tor_malloc_ src/common/util.c:150
     #2 0x5582ccb7d904 in tor_x509_cert_new__real src/common/tortls.c:687
     #3 0x5582cc61f504 in test_link_handshake_certs_ok
 src/test/test_link_handshake.c:232
     #4 0x5582cc783a78 in testcase_run_bare_ src/ext/tinytest.c:106
     #5 0x5582cc783f76 in testcase_run_forked_ src/ext/tinytest.c:190
     #6 0x5582cc783f76 in testcase_run_one src/ext/tinytest.c:248
     #7 0x5582cc785465 in tinytest_main src/ext/tinytest.c:435
     #8 0x5582cc3d7846 in main src/test/testing_common.c:319
     #9 0x7fe71e6c4400 in __libc_start_main (/lib64/libc.so.6+0x20400)

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22803>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list