[tor-bugs] #19669 [Core Tor/Tor]: `log_prefix_` maybe getting weird output from strftime

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Aug 12 17:27:10 UTC 2016


#19669: `log_prefix_` maybe getting weird output from strftime
--------------------------+------------------------------------
 Reporter:  dcf           |          Owner:
     Type:  defect        |         Status:  needs_information
 Priority:  Low           |      Milestone:  Tor: 0.3.0.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Minor         |     Resolution:
 Keywords:  easy          |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------
Changes (by nickm):

 * priority:  Medium => Low
 * keywords:   => easy
 * status:  new => needs_information
 * milestone:   => Tor: 0.3.0.x-final


Comment:

 I bet that log_prefix_ is miscounting the number of characters in the
 prefix, because of a system vsnprintf implementation that returns 0 rather
 than the number of characters emitted.

 I'd take a patch for this if somebody writes one.

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


More information about the tor-bugs mailing list