Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-09-15 | Run our #else/#endif annotator on our source code. | Nick Mathewson | |
2017-09-07 | Add a module comment to util_bug.h | Nick Mathewson | |
Closes ticket 22824. | |||
2017-07-28 | Coverity deadcode shenanigans on BUG() macro. | Nick Mathewson | |
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. | |||
2017-07-26 | Merge branch 'maint-0.3.0' into maint-0.3.1 | Nick Mathewson | |
2017-07-26 | Fix build warnings from Coverity related to our BUG macro | Nick Mathewson | |
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. | |||
2017-03-15 | Run the copyright update script. | Nick Mathewson | |
2016-09-14 | Remove an extraneous parenthesis in IF_BUG_OHNCE__ | Nick Mathewson | |
Fixes bug 20141; bugfix on 0.2.9.1-alpha. Patch from Gisle Vanem. | |||
2016-09-08 | Treat all nonfatal assertion failures as unit test failures. | Nick Mathewson | |
Part of 19999. | |||
2016-09-06 | Add facility to suppress/capture tor_bug_occurred_() messages in unit tests. | Nick Mathewson | |
2016-09-06 | Add !(...) to BUG() log messages | Nick Mathewson | |
They use the same code as reporting assertion failures, so we should invert the sense of what we're "asserting". Fixes bug 20093. | |||
2016-06-09 | Reduce make check-spaces noise | Andrea Shepard | |
2016-04-15 | Add branch prediction to util_bug.h, and fix a bug. | Nick Mathewson | |
2016-04-14 | Add an IF_BUG_ONCE macro, since that's a pretty common pattern too. | Nick Mathewson | |
2016-04-14 | Add a BUG macro for usage in if checks. | Nick Mathewson | |
2016-04-14 | Add new tor_assert_nonfatal*() macros. | Nick Mathewson | |
Unlike tor_assert(), these macros don't abort the process. They're good for checking conditions we want to warn about, but which don't warrant a full crash. This commit also changes the default implementation for tor_fragile_assert() to tor_assert_nonfatal_unreached_once(). Closes ticket 18613. | |||
2016-04-04 | Move tor_assert implementation into its own header/module. | Nick Mathewson | |