From 39a24eb0d0cce7f47219775dc0d975e3b4f2ebf7 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Sun, 22 May 2022 18:04:50 -0400 Subject: [PATCH] fixup! Help the static analyzer --- src/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init.c b/src/init.c index ac37cef5b6c55..49fd8e5b1df8f 100644 --- a/src/init.c +++ b/src/init.c @@ -101,7 +101,8 @@ void jl_init_stack_limits(int ismaster, void **stack_lo, void **stack_hi) struct rlimit rl; getrlimit(RLIMIT_STACK, &rl); size_t stacksize = rl.rlim_cur; -#ifndef __clang_analyzer__ # We intentionally leak a stack address here core.StackAddressEscape +// We intentionally leak a stack address here core.StackAddressEscape +#ifndef __clang_analyzer__ *stack_hi = (void*)&stacksize; *stack_lo = (void*)((char*)*stack_hi - stacksize); #endif