Craig Barnes
|
7656744877
|
debug: make use of log_msg() in fatal_error() and bug() functions
Instead of writing directly to stderr and/or syslog(3).
|
2021-02-09 12:32:33 +00:00 |
|
Craig Barnes
|
e56136ce11
|
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
|
2021-01-16 20:16:00 +00:00 |
|
Craig Barnes
|
22f25a9e4f
|
Print stack trace on assert() failure or when calling fatal_error()
Note: this uses the __sanitizer_print_stack_trace() function from the
AddressSanitizer runtime, so it only works when AddressSanitizer is
in use.
|
2021-01-16 19:56:33 +00:00 |
|
Daniel Eklöf
|
8aba25a477
|
xmalloc: add xwcsdup()
|
2020-10-09 19:43:04 +02:00 |
|
Craig Barnes
|
fe9eaf3aaf
|
xmalloc: fix edge case handling in xcalloc() function
|
2020-08-25 20:49:24 +01:00 |
|
Craig Barnes
|
4564c82513
|
xmalloc: add xrealloc() and xstrndup() functions
|
2020-08-07 01:05:04 +01:00 |
|
Craig Barnes
|
014019e98d
|
xmalloc: log error to syslog() in fatal_error() function
|
2020-08-05 20:11:51 +01:00 |
|
Craig Barnes
|
f1fce96a1d
|
config: handle allocation failure explicitly
|
2020-08-04 23:28:16 +01:00 |
|