From 779165e6d42cfb3d19859e4eaa0da6807b24ad20 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 19 Jun 2011 08:33:27 -0400 Subject: [PATCH] x86_64: ensure that dtor pointer passed to app is 0 so it won't be used leaving it uninitialized caused unpredictable crashes or worse due to calling an indeterminate function pointer. --- src/ldso/x86_64/start.s | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ldso/x86_64/start.s b/src/ldso/x86_64/start.s index efb27454..cb0a9e1f 100644 --- a/src/ldso/x86_64/start.s +++ b/src/ldso/x86_64/start.s @@ -5,4 +5,5 @@ _start: lea 8(%rsp),%rsi lea _GLOBAL_OFFSET_TABLE_(%rip),%rdx call __dynlink + xor %edx,%edx jmp *%rax -- 2.25.1