Skip to content
Snippets Groups Projects
  1. Jun 10, 2013
    • Nick Mathewson's avatar
      Fix (Open?)BSD fast-connect bug with optimistic data. · 77a19353
      Nick Mathewson authored
      There's an assertion failure that can occur if a connection has
      optimistic data waiting, and then the connect() call returns 0 on the
      first attempt (rather than -1 and EINPROGRESS).  That latter behavior
      from connect() appears to be an (Open?)BSDism when dealing with remote
      addresses in some cases. (At least, I've only seen it reported with
      the BSDs under libevent, even when the address was 127.0.0.1.  And
      we've only seen this problem in Tor with OpenBSD.)
      
      Fixes bug 9017; bugfix on 0.2.3.1-alpha, which first introduced
      optimistic data. (Although you could also argue that the commented-out
      connection_start_writing in 155c9b80 back in 2002 is the real source
      of the issue.)
      77a19353
  2. May 09, 2013
    • Nick Mathewson's avatar
      Don't run off the end of the array-of-freelists · 00e2310f
      Nick Mathewson authored
      This is a fix for bug 8844, where eugenis correctly notes that there's
      a sentinel value at the end of the list-of-freelists that's never
      actually checked.  It's a bug since the first version of the chunked
      buffer code back in 0.2.0.16-alpha.
      
      This would probably be a crash bug if it ever happens, but nobody's
      ever reported something like this, so I'm unsure whether it can occur.
      It would require write_to_buf, write_to_buf_zlib, read_to_buf, or
      read_to_buf_tls to get an input size of more than 32K.  Still, it's a
      good idea to fix this kind of thing!
      00e2310f
  3. Apr 12, 2013
  4. Apr 08, 2013
  5. Mar 07, 2013
  6. Mar 01, 2013
  7. Feb 12, 2013
  8. Feb 11, 2013
  9. Feb 08, 2013
  10. Jan 14, 2013
  11. Jan 05, 2013
  12. Dec 13, 2012
  13. Nov 13, 2012
    • Roger Dingledine's avatar
      use a more logical operator · 88bb48e7
      Roger Dingledine authored
      Fix a harmless bug when opting against publishing a relay descriptor
      because DisableNetwork is set.
      
      Fixes bug 7464; bugfix on 0.2.3.9-alpha.
      88bb48e7
  14. Nov 09, 2012
  15. Nov 08, 2012
    • Nick Mathewson's avatar
      Add and use and unlikely-to-be-eliminated memwipe() · 49dd5ef3
      Nick Mathewson authored
      Apparently some compilers like to eliminate memset() operations on
      data that's about to go out-of-scope.  I've gone with the safest
      possible replacement, which might be a bit slow.  I don't think this
      is critical path in any way that will affect performance, but if it
      is, we can work on that in 0.2.4.
      
      Fixes bug 7352.
      49dd5ef3
  16. Oct 24, 2012
    • Nick Mathewson's avatar
      Fix a remotely triggerable assertion failure (CVE-2012-2250) · 758428dd
      Nick Mathewson authored
      If we completed the handshake for the v2 link protocol but wound up
      negotiating the wong protocol version, we'd become so confused about
      what part of the handshake we were in that we'd promptly die with an
      assertion.
      
      This is a fix for CVE-2012-2250; it's a bugfix on 0.2.3.6-alpha.
      All servers running that version or later should really upgrade.
      
      Bug and fix from "some guy from France."  I tweaked his code slightly
      to make it log the IP of the offending node.
      758428dd
    • Nick Mathewson's avatar
    • Andrea Shepard's avatar
      Add some unit tests for smartlist_bsearch_idx() on short lists · cb693ef5
      Andrea Shepard authored and Nick Mathewson's avatar Nick Mathewson committed
      Conflicts:
      	src/test/test_containers.c
      cb693ef5
    • Nick Mathewson's avatar
      Fix binary search on lists of 0 or 1 element. · 89057891
      Nick Mathewson authored
      The implementation we added has a tendency to crash with lists of 0 or
      one element.  That can happen if we get a consensus vote, v2
      consensus, consensus, or geoip file with 0 or 1 element.  There's a
      DOS opportunity there that authorities could exploit against one
      another, and which an evil v2 authority could exploit against anything
      downloading v2 directory information..
      
      This fix is minimalistic: It just adds a special-case for 0- and
      1-element lists.  For 0.2.4 (the current alpha series) we'll want a
      better patch.
      
      This is bug 7191; it's a fix on 0.2.0.10-alpha.
      89057891
  17. Oct 23, 2012
    • Roger Dingledine's avatar
      Let 0.2.3 clients exit to internal addresses if they want · 2ecee3fc
      Roger Dingledine authored
      Clients now consider the ClientRejectInternalAddresses config option
      when using a microdescriptor consensus stanza to decide whether
      an exit relay would allow exiting to an internal address. Fixes
      bug 7190; bugfix on 0.2.3.1-alpha.
      2ecee3fc
    • Nick Mathewson's avatar
      Fix parse_short_policy (bug 7192.) · 85659d39
      Nick Mathewson authored
      Our implementation of parse_short_policy was screwed up: it would
      ignore the last character of every short policy.  Obviously, that's
      broken.
      
      This patch fixes the busted behavior, and adds a bunch of unit tests
      to make sure the rest of that function is okay.
      
      Fixes bug 7192; fix on 0.2.3.1-alpha.
      85659d39
  18. Oct 22, 2012
  19. Oct 19, 2012
    • Robert Ransom's avatar
      Don't serve or accept v2 HS descs over a DirPort · d3bfdd61
      Robert Ransom authored and Nick Mathewson's avatar Nick Mathewson committed
      (changes file tweaked by nickm)
      d3bfdd61
    • Nick Mathewson's avatar
      Disable TLS Session Tickets, which we were apparently getting for free · 8743080a
      Nick Mathewson authored
      OpenSSL 1.0.0 added an implementation of TLS session tickets, a
      "feature" that let session resumption occur without server-side state
      by giving clients an encrypted "ticket" that the client could present
      later to get the session going again with the same keys as before.
      OpenSSL was giving the keys to decrypt these tickets the lifetime of
      the SSL contexts, which would have been terrible for PFS if we had
      long-lived SSL contexts.  Fortunately, we don't.  Still, it's pretty
      bad.  We should also drop these, since our use of the extension stands
      out with our non-use of session cacheing.
      
      Found by nextgens. Bugfix on all versions of Tor when built with
      openssl 1.0.0 or later.  Fixes bug 7139.
      8743080a
  20. Oct 17, 2012
  21. Oct 10, 2012
  22. Oct 04, 2012
  23. Oct 03, 2012
  24. Sep 22, 2012
  25. Sep 18, 2012
  26. Sep 14, 2012
    • Nick Mathewson's avatar
      Use file-size-fixup code on cygwin too. · b1447a43
      Nick Mathewson authored
      We already had code on windows to fix our file sizes when we're
      reading a file in text mode and its size doesn't match the size from
      fstat.  But that code was only enabled when _WIN32 was defined, and
      Cygwin defines __CYGWIN__ instead.
      
      Fixes bug 6844; bugfix on 0.1.2.7-alpha.
      b1447a43
  27. Sep 13, 2012
  28. Sep 12, 2012
  29. Sep 11, 2012
  30. Sep 10, 2012
Loading