mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
ubsan: alpha: member access within null pointer
* elf64-alpha.c (elf64_alpha_relax_with_lituse): Avoid UB.
This commit is contained in:
@ -3191,7 +3191,8 @@ elf64_alpha_relax_with_lituse (struct alpha_relax_info *info,
|
||||
}
|
||||
|
||||
/* Can't relax dynamic symbols. */
|
||||
if (alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info))
|
||||
if (info->h != NULL
|
||||
&& alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info))
|
||||
return true;
|
||||
|
||||
changed_contents = info->changed_contents;
|
||||
|
Reference in New Issue
Block a user