1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

Fix another crash due to missing NHDR

This commit is contained in:
Kevin Orr 2021-08-26 17:04:53 -04:00 committed by Lennart Poettering
parent fb9bd82443
commit a3a5446b76

View File

@ -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)