Skip to content

Commit e26597b

Browse files
committed
ASAN stack margin seems to need to be bigger on macOS (12.2?)
1 parent 71f7e72 commit e26597b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

xs/makefiles/mac/xst.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,11 @@ ifneq ("x$(SDKROOT)", "x")
7979
endif
8080

8181
ifeq ($(GOAL),debug)
82-
C_OPTIONS += -fsanitize=address -fno-omit-frame-pointer
82+
C_OPTIONS += -DmxASANStackMargin=65536 -fsanitize=address -fno-omit-frame-pointer
8383
LINK_OPTIONS += -fsanitize=address -fno-omit-frame-pointer
8484

8585
ifeq ($(FUZZILLI),0)
86-
C_OPTIONS += -DmxASANStackMargin=16384
87-
else
88-
C_OPTIONS += -DmxASANStackMargin=32768 -DFUZZILLI=1 -fsanitize-coverage=trace-pc-guard
86+
C_OPTIONS += -DFUZZILLI=1 -fsanitize-coverage=trace-pc-guard
8987
endif
9088
endif
9189

0 commit comments

Comments
 (0)