Fix null pointer access in case SUPPORT_LD_DEBUG configuration option is enabled.
Reported-by: Jean-Michel Hautbois <[email protected]> Link: https://mailman.openadk.org/mailman3/hyperkitty/list/[email protected]/thread/ODLJ53XJU5ZG3OLHVJMVWSNBYIFHFBAT/ Signed-off-by: Peter Seiderer <[email protected]> --- ldso/ldso/m68k/elfinterp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldso/ldso/m68k/elfinterp.c b/ldso/ldso/m68k/elfinterp.c index 25ea23067..1536bd5b2 100644 --- a/ldso/ldso/m68k/elfinterp.c +++ b/ldso/ldso/m68k/elfinterp.c @@ -193,7 +193,7 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope, #endif #if defined (__SUPPORT_LD_DEBUG__) - old_val = *reloc_addr; + old_val = reloc_addr ? *reloc_addr : 0; #endif switch (reloc_type) { -- 2.48.1 _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
