1. 12 Mar, 2021 2 commits
  2. 13 Jan, 2021 1 commit
    • Nick Mathewson's avatar
      Better fix for #40241 (--enable-all-bugs-are-fatal and fallthrough) · fa8ecf88
      Nick Mathewson authored
      This one should work on GCC _and_ on Clang.  The previous version
      made Clang happier by not having unreachable "fallthrough"
      statements, but made GCC sad because GCC didn't think that the
      unconditional failures were really unconditional, and therefore
      _wanted_ a FALLTHROUGH.
      
      This patch adds a FALLTHROUGH_UNLESS_ALL_BUGS_ARE_FATAL macro that
      seems to please both GCC and Clang in this case: ordinarily it is a
      FALLTHROUGH, but when ALL_BUGS_ARE_FATAL is defined, it's an
      abort().
      
      Fixes bug 40241 again.  Bugfix on earlier fix for 40241, which was
      merged into maint-0.3.5 and forward, and released in 0.4.5.3-rc.
      fa8ecf88
  3. 29 Apr, 2020 1 commit
    • teor's avatar
      log/util_bug: Make IF_BUG_ONCE() support ALL_BUGS_ARE_FATAL · 6c458d2d
      teor authored
      ... and DISABLE_ASSERTS_IN_UNIT_TESTS.
      
      Make all of tor's assertion macros support the ALL_BUGS_ARE_FATAL and
      DISABLE_ASSERTS_IN_UNIT_TESTS debugging modes.
      
      Implements these modes for IF_BUG_ONCE(). (It used to log a non-fatal
      warning, regardless of the debugging mode.)
      
      Fixes bug 33917; bugfix on 0.2.9.1-alpha.
      6c458d2d
  4. 30 Jan, 2020 1 commit
  5. 08 Jan, 2020 1 commit
  6. 16 Dec, 2019 1 commit
  7. 22 Oct, 2019 2 commits
  8. 30 Sep, 2019 1 commit
  9. 26 Sep, 2019 1 commit
  10. 05 Sep, 2019 1 commit
  11. 05 Jun, 2019 1 commit
  12. 15 Apr, 2019 2 commits
  13. 05 Mar, 2019 2 commits
  14. 16 Jan, 2019 2 commits
  15. 30 Jul, 2018 1 commit
  16. 20 Jul, 2018 1 commit
  17. 10 Jul, 2018 1 commit
    • Nick Mathewson's avatar
      Rename torlog.[ch] to log.[ch] · e7f5f48d
      Nick Mathewson authored
      Fun fact: these files used to be called log.[ch] until we ran into
      conflicts with systems having a log.h file.  But now that we always
      include "lib/log/log.h", we should be fine.
      e7f5f48d
  18. 22 Jun, 2018 3 commits
  19. 21 Jun, 2018 1 commit
  20. 20 Jun, 2018 4 commits
  21. 15 Sep, 2017 1 commit
  22. 07 Sep, 2017 1 commit
  23. 28 Jul, 2017 1 commit
    • Nick Mathewson's avatar
      Coverity deadcode shenanigans on BUG() macro. · 602c52ca
      Nick Mathewson authored
      We don't actually want Coverity to complain when a BUG() check can
      never fail, since such checks can prevent us from introducing bugs
      later on.
      
      Closes ticket 23054. Closes CID 1415720, 1415724.
      602c52ca
  24. 26 Jul, 2017 1 commit
    • Nick Mathewson's avatar
      Fix build warnings from Coverity related to our BUG macro · 32b9edeb
      Nick Mathewson authored
      In the Linux kernel, the BUG() macro causes an instant panic.  Our
      BUG() macro is different, however: it generates a nonfatal assertion
      failure, and is usable as an expression.
      
      Additionally, this patch tells util_bug.h to make all assertion
      failures into fatal conditions when we're building with a static
      analysis tool, so that the analysis tool can look for instances
      where they're reachable.
      
      Fixes bug 23030.
      32b9edeb
  25. 15 Mar, 2017 1 commit
  26. 14 Sep, 2016 1 commit
  27. 08 Sep, 2016 1 commit
  28. 07 Sep, 2016 2 commits
  29. 09 Jun, 2016 1 commit