[jdk17u-dev] RFR: 8277299: STACK_OVERFLOW in Java_sun_awt_shell_Win32ShellFolder2_getIconBits

John Tortugo duke at openjdk.java.net
Wed Jan 26 17:12:58 UTC 2022


On Fri, 14 Jan 2022 20:52:25 GMT, aamarsh <duke at openjdk.java.net> wrote:

> Makes colorBits and maskBits dynamic variables to force allocation on the heap instead of the stack and avoid a stackoverflow. Also adds a test to confirm this stackoverflow is no longer happening.
> 
> Tier1 and the newly added test passes on Windows. Clean backport.

test/jdk/javax/swing/JFileChooser/FileSystemView/ShellFolderStackOverflow.java line 2:

> 1: /*
> 2:  * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.

Please update copyright year. Same for the other file.

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

PR: https://git.openjdk.java.net/jdk17u-dev/pull/98


More information about the jdk-updates-dev mailing list