3 ms·
Thank you. I saw a warning about that from the compiler. But like I said I'm not a C programmer. Feel free to submit a PR if you like. I assume you're talking
by gabrielsroka 3y ago
Thank you. I saw a warning about that from the compiler. But like I said I'm not a C programmer. Feel free to submit a PR if you like.
I assume you're talking about Linux/Unix. I'm mostly a Windows guy.
- asveikau 3y agoI am knowledgeable about both. Unix guy at heart but used to work for MSFT on windows. The Windows version of mprotect(2) is VirtualProtect. It would probably make more sense to allocate the buffer with VirtualAlloc with the correct flags, rather than modify a stack buffer. The Unix version of that would be to allocate with mmap(2). Edit: https://github.com/gabrielsroka/gabrielsroka.github.io/pull/62 https://github.com/gabrielsroka/gabrielsroka.github.io/pull/...