Hi Peter,
Thanks for the patch !
Tested and it works fine:
On 20/02/2025 11:11, Peter Seiderer wrote:
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]>
Reviewed-by: Jean-Michel Hautbois <[email protected]>
Tested-by: Jean-Michel Hautbois <[email protected]>
Thanks,
JM
---
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) {
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]