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 2949815 commit cf54e0d
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 cf54e0d

Please sign in to comment.