Skip to content
Snippets Groups Projects
  1. Jan 05, 2012
  2. Dec 28, 2011
  3. Dec 15, 2011
  4. Dec 08, 2011
  5. Nov 14, 2011
  6. Nov 07, 2011
  7. Nov 06, 2011
  8. Oct 28, 2011
  9. Oct 26, 2011
  10. Oct 13, 2011
  11. Sep 15, 2011
  12. Sep 13, 2011
  13. Aug 08, 2011
  14. Jul 07, 2011
  15. Jul 01, 2011
    • Nick Mathewson's avatar
    • Nick Mathewson's avatar
      Use strlcpy in create_unix_sockaddr() · 959da6b7
      Nick Mathewson authored
      Using strncpy meant that if listenaddress were ever >=
      sizeof(sockaddr_un.sun_path), we would fail to nul-terminate
      sun_path.  This isn't a big deal: we never read sun_path, and the
      kernel is smart enough to reject the sockaddr_un if it isn't
      nul-terminated.  Nonetheless, it's a dumb failure mode.  Instead, we
      should reject addresses that don't fit in sockaddr_un.sun_path.
      
      Coverity found this; it's CID 428.  Bugfix on 0.2.0.3-alpha.
      959da6b7
Loading