[tor-bugs] #26007 [Core Tor/Tor]: Stop logging stack contents when reading a zero-length bandwidth file

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon May 7 16:14:06 UTC 2018


#26007: Stop logging stack contents when reading a zero-length bandwidth file
-------------------------------------------------+-------------------------
 Reporter:  teor                                 |          Owner:  teor
     Type:  defect                               |         Status:
                                                 |  needs_review
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.3.4.x-final
Component:  Core Tor/Tor                         |        Version:  Tor:
                                                 |  0.2.2.1-alpha
 Severity:  Normal                               |     Resolution:
 Keywords:  033-must-maybe security-low          |  Actual Points:
  032-backport 031-backport 029-backport fast-   |
  fix                                            |
Parent ID:  #25925                               |         Points:
 Reviewer:  asn                                  |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by nickm):

 WRT the question of how to avoid adding an extra file: you can use the
 "get_fname()" function to get a temporary filename from within a unit
 test, and then use write_str_to_file() to write a string into that file.
 The file will be automatically cleaned up when the unit tests exit.

 For a very simple example, see test_util_listdir() in test_util.c .

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


More information about the tor-bugs mailing list