1. 08 Jan, 2020 1 commit
  2. 22 Oct, 2019 2 commits
  3. 16 Oct, 2019 1 commit
    • Tobias Stoeckmann's avatar
      Check tor_vasprintf for error return values. · d91ad511
      Tobias Stoeckmann authored and Alexander Færøy's avatar Alexander Færøy committed
      
      
      In case of error, a negative value will be returned or NULL written into
      first supplied argument.
      
      This patch uses both cases to comply with style in the specific files.
      
      A tor_vasprintf error in process_vprintf would lead to a NULL dereference
      later on in buf_add, because the return value -1 casted to size_t would
      pass an assertion check inside of buf_add.
      
      On the other hand, common systems will fail on such an operation, so it
      is not a huge difference to a simple assertion. Yet it is better to
      properly fail instead of relying on such behaviour on all systems.
      Signed-off-by: default avatarTobias Stoeckmann <tobias@stoeckmann.org>
      d91ad511
  4. 04 Sep, 2019 1 commit
    • Nick Mathewson's avatar
      buffers: use ptrdiff_t to indicate offsets. · 3aba13f7
      Nick Mathewson authored
      Previously we used int in some places and off_t for others.  Neither
      is correct: ptrdiff_t is right for differences between pointers.
      (off_t is only for offsets and sizes on the filesystem.)
      3aba13f7
  5. 16 Jan, 2019 1 commit
  6. 14 Nov, 2018 1 commit
  7. 10 Jul, 2018 2 commits
  8. 02 Jul, 2018 1 commit
  9. 28 Jun, 2018 2 commits
  10. 22 Jun, 2018 1 commit
  11. 21 Jun, 2018 2 commits
  12. 20 Jun, 2018 2 commits
  13. 08 Dec, 2017 1 commit
  14. 27 Nov, 2017 1 commit
    • Nick Mathewson's avatar
      Add a new notion of "stamps" to be a fast 32-bit monotonic timestamp · c3c0a05f
      Nick Mathewson authored
      The goal here is to replace our use of msec-based timestamps with
      something less precise, but easier to calculate.  We're doing this
      because calculating lots of msec-based timestamps requires lots of
      64/32 division operations, which can be inefficient on 32-bit
      platforms.
      
      We make sure that these stamps can be calculated using only the
      coarse monotonic timer and 32-bit bitwise operations.
      c3c0a05f
  15. 02 Nov, 2017 2 commits
  16. 29 Sep, 2017 1 commit
  17. 28 Sep, 2017 2 commits
  18. 15 Sep, 2017 1 commit
  19. 13 Sep, 2017 1 commit
  20. 05 Sep, 2017 9 commits
  21. 03 Aug, 2017 1 commit
  22. 05 Jul, 2017 2 commits
  23. 26 Jun, 2017 1 commit
  24. 21 Jun, 2017 1 commit