aboutsummaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-04-05 09:40:51 -0400
committerNick Mathewson <nickm@torproject.org>2016-04-14 16:24:28 -0400
commita885271c08d2337b35c203c0b27509d0aa32dbf6 (patch)
tree0cb88f3d43fcc7a90be972d958d3146c1294c06b /changes
parent7865402106e9af273b9c887484b8371a899683ad (diff)
downloadtor-a885271c08d2337b35c203c0b27509d0aa32dbf6.tar.gz
tor-a885271c08d2337b35c203c0b27509d0aa32dbf6.zip
Add new tor_assert_nonfatal*() macros.
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.
Diffstat (limited to 'changes')
-rw-r--r--changes/assert_nonfatal5
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/assert_nonfatal b/changes/assert_nonfatal
new file mode 100644
index 0000000000..0cbee4419b
--- /dev/null
+++ b/changes/assert_nonfatal
@@ -0,0 +1,5 @@
+ o Minor features (safety, debugging):
+
+ * Add a set of macros to check nonfatal assertions, for internal
+ use. Migrating more of our checks to these should help us avoid
+ needless crash bugs. Closes ticket 18613.