[OpenJDK 2D-Dev] [11] RFR for JDK-8201433: Fix potential crash in BufImg_SetupICM

Phil Race philip.race at oracle.com
Thu Apr 12 17:01:51 UTC 2018



On 04/12/2018 08:25 AM, Alexey Ivanov wrote:
> Hi,
> Please review the fix for jdk11:
> bug: https://bugs.openjdk.java.net/browse/JDK-8201433
> webrev: http://cr.openjdk.java.net/~aivanov/8201433/jdk11/webrev.00/
> When the JVM is run with limited amount of memory, initCubemap 
> function called from BufImg_SetupICM can return NULL. It can lead to a 
> crash. It usually happens when native memory is exhausted and malloc 
> fails. In this state, JVM itself is not stable.
> Adding NULL-check can prevent the crash in this particular place. 
> However, if the app continues, since native memory is exhausted and 
> malloc fails, JVM can still crash in another place.
> Thank you in advance.
> Regards,
> Alexey

More information about the 2d-dev mailing list