Skip to content

Commit 9079472

Browse files
StefanKarpinskiJeffBezanson
authored andcommitted
JULIA_COPY_STACKS: validate values (#33318)
1 parent c1403bd commit 9079472

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/task.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,10 @@ void jl_init_tasks(void) JL_GC_DISABLED
638638
always_copy_stacks = 1;
639639
else if (!strcmp(acs, "0") || !strcmp(acs, "no"))
640640
always_copy_stacks = 0;
641+
else {
642+
jl_printf(JL_STDERR, "invalid JULIA_COPY_STACKS value: %s\n", acs);
643+
exit(1);
644+
}
641645
}
642646
}
643647

0 commit comments

Comments
 (0)