From e96e7f652704cf6d1b2ec9836285b3227d32a0bf Mon Sep 17 00:00:00 2001 From: Manuel Dipolt Date: Fri, 25 Oct 2019 17:32:43 +0200 Subject: Update main.c Eight byte stack alignment is a requirement of the Procedure Call Standard for the ARM Architecture [AAPCS]. This specifies that functions must maintain an eight-byte aligned stack address (for example: 0x00, 0x08, 0x10, 0x18, 0x20) on all external interfaces --- src/firejail/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/firejail/main.c b/src/firejail/main.c index cbe3292ba..7dc1b449b 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c @@ -55,7 +55,7 @@ uid_t firejail_uid = 0; gid_t firejail_gid = 0; #define STACK_SIZE (1024 * 1024) -static char child_stack[STACK_SIZE]; // space for child's stack +static char child_stack[STACK_SIZE] __attribute__((aligned(8))); // space for child's stack Config cfg; // configuration int arg_private = 0; // mount private /home and /tmp directoryu int arg_private_cache = 0; // mount private home/.cache -- cgit v1.2.3-70-g09d2