Use a tor_abort_() wrapper in our util_bug.h macros
commit802ac8ad618a0674c26bb973a2277e07b20f8c7b
authorNick Mathewson <nickm@torproject.org>
Mon, 15 Apr 2019 18:16:23 +0000 (15 14:16 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 15 Apr 2019 18:16:23 +0000 (15 14:16 -0400)
treeaf82ab1a01d839e81604dcb46551ff18f52dbd7b
parent9f3f99938e441c09c1b3bf64510b8fb682dba007
Use a tor_abort_() wrapper in our util_bug.h macros

Previously, our use of abort() would break anywhere that we didn't
include stdlib.h.  This was especially troublesome in case where
tor_assert_nonfatal() was used with ALL_BUGS_ARE_FATAL, since that
one seldom gets tested.

As an alternative, we could have just made this header include
stdlib.h.  But that seems bloaty.

Fixes bug 30189; bugfix on 0.3.4.1-alpha.
changes/bug30189 [new file with mode: 0644]
src/lib/log/util_bug.c
src/lib/log/util_bug.h