From: Rich Felker Date: Sun, 19 Jun 2011 12:33:27 +0000 (-0400) Subject: x86_64: ensure that dtor pointer passed to app is 0 so it won't be used X-Git-Tag: v0.7.11~39 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=779165e6d42cfb3d19859e4eaa0da6807b24ad20;p=oweals%2Fmusl.git 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. --- 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