Commit 44df6d79 authored by Thomas Haller's avatar Thomas Haller
Browse files

core: don't enable setrlimit(RLIMIT_CORE) when running with address sanitizer

With address sanitizer, the call to setrlimit() fails by default,
because the core dump would be huge. That could be overwritten via


But just don't try to enable core-dumps with asan.
parent 3355a282
......@@ -110,6 +110,7 @@ _init_nm_debug (NMConfig *config)
flags = nm_utils_parse_debug_string (env, keys, G_N_ELEMENTS (keys));
flags |= nm_utils_parse_debug_string (debug, keys, G_N_ELEMENTS (keys));
#if ! defined (__SANITIZE_ADDRESS__)
if (NM_FLAGS_HAS (flags, D_RLIMIT_CORE)) {
/* only enable this, if explicitly requested, because it might
* expose sensitive data. */
......@@ -120,6 +121,8 @@ _init_nm_debug (NMConfig *config)
setrlimit (RLIMIT_CORE, &limit);
_set_g_fatal_warnings ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment