C++ Logo


Advanced search

Re: [std-proposals] #include <call_stack>

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 31 May 2023 07:16:49 -0700
On Wednesday, 31 May 2023 00:20:13 PDT Frederick Virchanza Gotham via Std-
Proposals wrote:
> (2) If the stack isn't executable, and you need to execute the stack

No, in this case you need to redesign. If your stack isn't executable, it's
because it's not meant to be executable and the OS enforces that it isn't. You
can't just create a new one and hope it'll work.

Anyway, please look into the POSIX function setcontext().

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-05-31 14:16:51