mirror of
https://github.com/dynup/kpatch
synced 2025-02-21 12:26:52 +00:00
create-diff-object: make sure sym->sec is not null in kpatch_replace_sections_syms()
Check that sym->sec is not null before dereferencing it. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
9049abd0f5
commit
1722f14221
@ -1322,6 +1322,7 @@ static void kpatch_replace_sections_syms(struct kpatch_elf *kelf)
|
||||
int start, end;
|
||||
|
||||
if (sym->type == STT_SECTION ||
|
||||
!sym->sec ||
|
||||
sym->sec != rela->sym->sec)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user