[tor-bugs] #4921 [Pluggable transport]: obfsproxy: use asprintf

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Jan 16 20:27:29 UTC 2012


#4921: obfsproxy: use asprintf
---------------------------------+------------------------------------------
 Reporter:  nickm                |          Owner:  asn
     Type:  enhancement          |         Status:  new
 Priority:  normal               |      Milestone:     
Component:  Pluggable transport  |        Version:     
 Keywords:                       |         Parent:     
   Points:                       |   Actualpoints:     
---------------------------------+------------------------------------------
 malloc+snprintf is a fragile pattern; tor_asprintf is much less likely to
 bite you because you added numbers wrong or updated a format string
 without making a corresponding change in the allocation.

 Similarly, snprint+strdup() is icky.

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


More information about the tor-bugs mailing list