[tor-bugs] #23691 [- Select a component]: leak in test_util_decompress_dos_impl()

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 28 22:52:19 UTC 2017

#23691: leak in test_util_decompress_dos_impl()
     Reporter:  catalyst              |      Owner:  catalyst
         Type:  defect                |     Status:  assigned
     Priority:  Medium                |  Milestone:
    Component:  - Select a component  |    Version:
     Severity:  Normal                |   Keywords:
Actual Points:                        |  Parent ID:
       Points:                        |   Reviewer:
      Sponsor:                        |
 On master, `make check` results in multiple errors of the form
 ==52419==ERROR: LeakSanitizer: detected memory leaks

 Direct leak of 3145728 byte(s) in 3 object(s) allocated from:
     #0 0x7f4b123de602 in malloc (/usr/lib/x86_64-linux-
     #1 0x55a23af687ea in tor_malloc_ src/common/util.c:150
     #2 0x55a23af68891 in tor_malloc_zero_ src/common/util.c:178
     #3 0x55a23aa4a70a in test_util_decompress_dos_impl
     #4 0x55a23aa4a70a in test_util_decompress_dos
     #5 0x55a23aaa7468 in testcase_run_bare_ src/ext/tinytest.c:106
     #6 0x55a23aaa78a0 in testcase_run_one src/ext/tinytest.c:253
     #7 0x55a23aaa8dd3 in tinytest_main src/ext/tinytest.c:435
     #8 0x55a23a69ed98 in main src/test/testing_common.c:319
     #9 0x7f4b1003a82f in __libc_start_main (/lib/x86_64-linux-

 SUMMARY: AddressSanitizer: 3145728 byte(s) leaked in 3 allocation(s).
 FAIL src/test/test (exit status: 23)

 It looks like a simple case of failing to free `input`; I'll write up a

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

More information about the tor-bugs mailing list