From: Peter van Dijk Date: Sat, 8 Sep 2018 16:31:58 +0000 (+0200) Subject: realign ucontext stack after #6719 X-Git-Tag: dnsdist-1.3.3~108^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43c3c21ed15b52b43d69972985e8cc7f8240c1f5;p=pdns realign ucontext stack after #6719 --- diff --git a/pdns/mtasker_ucontext.cc b/pdns/mtasker_ucontext.cc index d7663e340..2cecc97f4 100644 --- a/pdns/mtasker_ucontext.cc +++ b/pdns/mtasker_ucontext.cc @@ -134,7 +134,7 @@ pdns_makecontext } mcp->uc_link = next; mcp->uc_stack.ss_sp = ctx.uc_stack.data(); - mcp->uc_stack.ss_size = ctx.uc_stack.size(); + mcp->uc_stack.ss_size = ctx.uc_stack.size()-1; mcp->uc_stack.ss_flags = 0; auto ctxarg = splitPointer (&ctx);