Skip to content
Snippets Groups Projects
  1. Nov 20, 2017
    • David Goulet's avatar
      circuit: Don't timeout opened C_INTRODUCING circuit · 981bb605
      David Goulet authored and Nick Mathewson's avatar Nick Mathewson committed
      
      A circuit with purpose C_INTRODUCING means that its state is opened but the
      INTRODUCE1 cell hasn't been sent yet. We shouldn't consider that circuit when
      looking for timing out "building circuit". We have to wait on the rendezvous
      circuit to be opened before sending that cell so the intro circuit needs to be
      kept alive for at least that period of time.
      
      This patch makes that the purpose C_INTRODUCING is ignored in the
      circuit_expire_building() which means that we let the circuit idle timeout
      take care of it if we end up never using it.
      
      Fixes #23681
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      981bb605
  2. Nov 18, 2017
  3. Nov 17, 2017
  4. Nov 16, 2017
    • Nick Mathewson's avatar
      Fix a traceback when closing a blocked connection "immediately". · 95238eb9
      Nick Mathewson authored
      When we close a connection via connection_close_immediately, we kill
      its events immediately. But if it had been blocked on bandwidth
      read/write, we could try to re-add its (nonexistent) events later
      from connection_bucket_refill -- if we got to that callback before
      we swept the marked connections.
      
      Fixes bug 24167.  Fortunately, this hasn't been a crash bug since we
      introduced connection_check_event in 0.2.9.10, and backported it.
      
      This is a bugfix on commit 89d42291, I believe, which
      appeared in Tor 0.1.0.1-rc.
      95238eb9
    • David Goulet's avatar
      relay: Avoid extra LOG_NOTICE for every new descriptor batch · 380a9511
      David Goulet authored
      
      Commit 56c5e282 suppressed that same log
      statement in directory_info_has_arrived() for microdescriptors so do the same
      for the descriptors. As the commit says, we already have the bootstrap
      progress for this.
      
      Fixes #23861
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      380a9511
    • Nick Mathewson's avatar
      Downgrade evdns warnings about weird replies. · 2a98fcb8
      Nick Mathewson authored
      evdns is allowed to give us unrecognized object types; it is allowed
      to give us non-IPv4 answer types, and it is (even) allowed to give
      us empty answers without an error.
      
      Closes ticket 24097.
      2a98fcb8
  5. Nov 15, 2017
  6. Nov 14, 2017
  7. Nov 13, 2017
  8. Nov 11, 2017
    • Nick Mathewson's avatar
      Fix mock_crypto_pk_public_checksig__nocheck() to handle short RSA keys · a7ca71cf
      Nick Mathewson authored
      This function -- a mock replacement used only for fuzzing -- would
      have a buffer overflow if it got an RSA key whose modulus was under
      20 bytes long.
      
      Fortunately, Tor itself does not appear to have a bug here.
      
      Fixes bug 24247; bugfix on 0.3.0.3-alpha when fuzzing was
      introduced.  Found by OSS-Fuzz; this is OSS-Fuzz issue 4177.
      a7ca71cf
  9. Nov 10, 2017
  10. Nov 09, 2017
  11. Nov 08, 2017
  12. Nov 07, 2017
  13. Nov 06, 2017
    • Nick Mathewson's avatar
      Fix a memory leak on decryption non-failure of v3 hsdesc · 5240afa7
      Nick Mathewson authored
      If it decrypts something that turns out to start with a NUL byte,
      then decrypt_desc_layer() will return 0 to indicate the length of
      its result.  But 0 also indicates an error, which causes the result
      not to be freed by decrypt_desc_layer()'s callers.
      
      Since we're trying to stabilize 0.3.2.x, I've opted for the simpler
      possible fix here and made it so that an empty decrypted string will
      also count as an error.
      
      Fixes bug 24150 and OSS-Fuzz issue 3994.
      
      The original bug was present but unreachable in 0.3.1.1-alpha. I'm
      calling this a bugfix on 0.3.2.1-alpha since that's the first version
      where you could actually try to decrypt these descriptors.
      5240afa7
    • Nick Mathewson's avatar
      Fix a 32-bit formatting warning · bebdd910
      Nick Mathewson authored
      bebdd910
  14. Nov 05, 2017
Loading