From 8464d859d46802dcb853e5e27ddb021c2ab3a5e0 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Wed, 6 Dec 2023 10:14:37 +0100 Subject: [PATCH] Add HAVE_BOLOS_APP_STACK_CANARY by default --- Makefile.defines | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.defines b/Makefile.defines index 72a2c12fd..b6e09ec7f 100644 --- a/Makefile.defines +++ b/Makefile.defines @@ -52,6 +52,13 @@ endif # APPNAME exposed to the app as a CFLAG because it might contain spaces CFLAGS += -DAPPNAME=\"$(APPNAME)\" +# Stack canary enabled by default +ifeq (,$(filter $(DEFINES),BOLOS_OS_UPGRADER_APP)) +ifndef DISABLE_BOLOS_APP_STACK_CANARY +DEFINES += HAVE_BOLOS_APP_STACK_CANARY +endif +endif + # API_LEVEL exposed to the app as an integer DEFINES += API_LEVEL=$(API_LEVEL)