tor callgrinds

Watson Ladd watsonbladd at gmail.com
Sat Feb 17 02:19:51 UTC 2007


I couldn't help but notice a strncpy in the diagrams. That's
inefficient, and insecure. The reason is that strncpy fills the entire
rest of the  target string with \x00 but might not do it if the sizes
differ. Use strlcpy instead! It's almost a drop in replacement, faster,
and more secure.
Thanks,
Watson Ladd


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20070216/759aafa8/attachment.pgp>


More information about the tor-dev mailing list