On Wed, 6 Jul 2022 05:57:00 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

> BasicOptionPaneUI.addMessageComponents() uses recursion to split message 
> strings at newlines, generating a StackOverflowError when the message string 
> contains an unusually large number of newlines.
> Fixed by catching StackOverflow and ignoring so that application is not stuck.

This pull request has now been integrated.

Changeset: 46251bc6
Author:    Prasanta Sadhukhan <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/46251bc6e248a19e8d78173ff8d0502c68ee1acb
Stats:     68 lines in 2 files changed: 66 ins; 0 del; 2 mod

8224267: JOptionPane message string with 5000+ newlines produces 
StackOverflowError

Reviewed-by: tr, aivanov

-------------

PR: https://git.openjdk.org/jdk/pull/9388

Reply via email to