RFR: 8277299: STACK_OVERFLOW in Java_sun_awt_shell_Win32ShellFolder2_getIconBits [v3]

Alexey Ivanov aivanov at openjdk.java.net
Fri Dec 3 20:24:12 UTC 2021


On Fri, 3 Dec 2021 20:14:23 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

> Yes, but then handle_bad_alloc() will not be called which will not raise the OutOfMemoryError on the java side.

Can't we call it explicitly in the case where `colorBits == NULL`?

Alternatively, since you don't use the macros for try and catch, you can re-arrange code and perform cleanup after the catch-block. Just an idea… It may not work.

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

PR: https://git.openjdk.java.net/jdk/pull/6473



More information about the client-libs-dev mailing list