Skip to content

Commit

Permalink
[FLINK-36511] Prevent StackOverflow in FlinkSecurityManager
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol authored Oct 11, 2024
1 parent 28642d9 commit 98c0c90
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ public void checkExit(int status) {
// At this point, exit is determined. Halt if defined, otherwise check ended, JVM will call
// System.exit
if (haltOnSystemExit) {
// null the security manager to prevent infinite recursion
System.setSecurityManager(null);
Runtime.getRuntime().halt(status);
}
}
Expand Down

0 comments on commit 98c0c90

Please sign in to comment.