[tor-bugs] #8790 [Tor]: Don't even use strcat/strcpy in the unit tests

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Apr 28 02:05:43 UTC 2013


#8790: Don't even use strcat/strcpy in the unit tests
------------------------+---------------------------------------------------
 Reporter:  nickm       |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  trivial     |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor         |        Version:                    
 Keywords:  tor-client  |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------
 Using strcpy() is embarrassing, even when you happen to be using it
 safely.  Our unit tests use it in a few places.  Let's replace them with
 strlcpy.

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


More information about the tor-bugs mailing list