From: Kevin Orr Date: Thu, 26 Aug 2021 21:04:53 +0000 (-0400) Subject: Fix another crash due to missing NHDR X-Git-Tag: v250-rc1~767 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3a5446b7675696f43c2d8a2a0b898d72228a53d;p=thirdparty%2Fsystemd.git Fix another crash due to missing NHDR --- diff --git a/src/coredump/stacktrace.c b/src/coredump/stacktrace.c index e46b324cdf7..f855a370ffc 100644 --- a/src/coredump/stacktrace.c +++ b/src/coredump/stacktrace.c @@ -299,6 +299,8 @@ static int module_callback(Dwfl_Module *mod, void **userdata, const char *name, program_header->p_offset, program_header->p_filesz, ELF_T_NHDR); + if (!data) + continue; Elf *memelf = elf_memory(data->d_buf, data->d_size); if (!memelf)