[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs