Skip to content

Commit

Permalink
Align stack to a multiple of 16 bytes
Browse files Browse the repository at this point in the history
Patch by Bernard. Closes ioi#64.
  • Loading branch information
gollux committed Jan 29, 2019
1 parent ff7339c commit 18554e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isolate.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ run(char **argv)

proxy_pid = clone(
box_proxy, // Function to execute as the body of the new process
argv, // Pass our stack
(void*)((uintptr_t)argv & ~(uintptr_t)15), // Pass our stack, aligned to 16-bytes
SIGCHLD | CLONE_NEWIPC | (share_net ? 0 : CLONE_NEWNET) | CLONE_NEWNS | CLONE_NEWPID,
argv); // Pass the arguments
if (proxy_pid < 0)
Expand Down

0 comments on commit 18554e8

Please sign in to comment.