Skip to content
Snippets Groups Projects
  1. Aug 10, 2013
  2. Jul 31, 2013
  3. Jul 30, 2013
  4. Jul 26, 2013
  5. Jul 23, 2013
  6. Jul 19, 2013
  7. Jul 16, 2013
  8. Jul 08, 2013
  9. Jul 03, 2013
    • Nick Mathewson's avatar
      FIx undefined behavior in dirvote.c · 15cd79f8
      Nick Mathewson authored
       Fix a bug in the voting algorithm that could yield incorrect results
       when a non-naming authority declared too many flags. Fixes bug 9200;
       bugfix on 0.2.0.3-alpha.
      
      Found by coverity scan.
      15cd79f8
  10. Jun 29, 2013
  11. Jun 24, 2013
  12. Jun 18, 2013
    • Nick Mathewson's avatar
      Implement a real OOM-killer for too-long circuit queues. · 2e1fe1fc
      Nick Mathewson authored
      This implements "algorithm 1" from my discussion of bug #9072: on OOM,
      find the circuits with the longest queues, and kill them.  It's also a
      fix for #9063 -- without the side-effects of bug #9072.
      
      The memory bounds aren't perfect here, and you need to be sure to
      allow some slack for the rest of Tor's usage.
      
      This isn't a perfect fix; the rest of the solutions I describe on
      codeable.
      2e1fe1fc
  13. Jun 17, 2013
  14. Jun 15, 2013
  15. Jun 14, 2013
  16. Jun 13, 2013
    • Nick Mathewson's avatar
      If we write the annotation but not the microdescriptor, rewind. · caa0d15c
      Nick Mathewson authored
      This fixes bug 9047 (and some parts of 9031, 8922, 8883 that weren't
      fixed in 8822).  Bugfix on 0.2.2.6-alpha.
      caa0d15c
    • Nick Mathewson's avatar
      Remove various outdated documents. · a3f6f331
      Nick Mathewson authored
      doc/TODO and doc/spec/README were placeholders to tell people where to
      look for the real TODO and README stuff -- we replaced them years ago,
      though.
      
      authority-policy, v3-authority-howto, and torel-design.txt belong in
      torspec.  I'm putting them in attic there since I think they may be in
      large part obsolete, but someone can rescue them if they're not.
      
      translations.txt is outdated, and refers to lots of programs other
      than Tor.  We have much better translation resources on the website
      now.
      
      tor-win32-mingw-creation.txt is pending review of a revised version
      for 0.2.5 (see ticket #4520), but there's no reason to ship this one
      while we're waiting for an accurate version.
      
      the tor-rpm-creation.txt isn't obsolete AFAIK, but it belongs in
      doc/contrib if anywhere.
      
      Resolves bug #8965.
      a3f6f331
  17. Jun 12, 2013
    • Nick Mathewson's avatar
      Unmap the microdescriptor cache before replacing it. · f455686b
      Nick Mathewson authored
      This is a reprise of the fix in bdff7e32; 6905c1f6 reintroduced
      that bug.  Briefly: windows doesn't seem to like deleting a mapped
      file.  I tried adding the PROT_SHARED_DELETE flag to the createfile
      all, but that didn't actually fix this issue.  Fortunately, the unit
      test I added in 4f4fc63f should
      prevent us from making this particular screw-up again.
      
      This patch also tries to limit the crash potential of a failure to
      write by a little bit, although it could do a better job of retaining
      microdescriptor bodies.
      
      Fix for bug 8822, bugfix on 0.2.4.12-alpha.
      f455686b
    • Nick Mathewson's avatar
      Revert "Use the FILE_SHARE_DELETE flag for CreateFile on a mapping" · fff9386a
      Nick Mathewson authored
      This reverts commit 884a0e26.
      
      I'm reverting this because it doesn't actually make the problem go
      away.  It appears that instead we need to do unmap-then-replace.
      fff9386a
    • Nick Mathewson's avatar
      Use the FILE_SHARE_DELETE flag for CreateFile on a mapping · 884a0e26
      Nick Mathewson authored
      A comment by rransom on #8795 taken together with a comment by doorss
      recorded on #2077 suggest that *every* attempt to replace the md cache
      will fail on Vista/Win7 if we don't have the FILE_SHARE_DELETE flag
      passed to CreateFile, and if we try to replace the file ourselves
      before unmapping it.  I'm adding the FILE_SHARE_DELETE, since that's
      this simplest fix.  Broken indexers (the favored #2077 hypothesis)
      could still cause trouble here, but at least this patch should make us
      stop stepping on our own feet.
      
      Likely fix for #2077 and its numerous duplicates. Bugfix on
      0.2.2.6-alpha, which first had a microdescriptor cache that would get
      replaced before remapping it.
      884a0e26
  18. 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
  19. Jun 05, 2013
  20. May 31, 2013
  21. May 21, 2013
  22. May 20, 2013
  23. May 17, 2013
  24. May 15, 2013
  25. May 13, 2013
  26. May 09, 2013
    • Andrea Shepard's avatar
      When downloading certificates, distinguish requesting by identity digest from... · fddb814f
      Andrea Shepard authored
      When downloading certificates, distinguish requesting by identity digest from requesting by ID digest, signing key pair; fixes bug 5595
      fddb814f
    • 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
  27. May 08, 2013
  28. May 05, 2013
    • Nick Mathewson's avatar
      Fix 8833: crash bug from using NULL node->ri in dirserv.c · 139d367f
      Nick Mathewson authored
      It appears that moria1 crashed because of one instance of this (the
      one in router_counts_toward_thresholds).  The other instance I fixed
      won't actually have broken anything, but I think it's more clear this
      way.
      
      Fixes bug 8833; bugfix on 0.2.4.12-alpha.
      139d367f
  29. Apr 25, 2013
  30. Apr 19, 2013
  31. Apr 18, 2013
  32. Apr 17, 2013
  33. Apr 13, 2013
Loading