Skip to content

Commit

Permalink
fixup! Help the static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed May 22, 2022
1 parent 118989b commit 39a24eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39a24eb

Please sign in to comment.