[OpenJDK 2D-Dev] [XS] RFR : JDK-8204085: avoid printing uninitialized pointer in java.desktop/windows/native/libawt/java2d/windows/GDIWindowSurfaceData.cpp

Baesken, Matthias matthias.baesken at sap.com
Wed May 30 13:32:46 UTC 2018

Hi could I please get reviews for this very small change :

In java.desktop/windows/native/libawt/java2d/windows/GDIWindowSurfaceData.cpp , function GDIWindowSurfaceData_GetComp,
we might print pointer pData in uninitialized state.

This occurs in case localObj == NULL , then we would  print pData without initialization.

The small fix adds initialization to  pData  :


change :

Thanks, Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20180530/7e32eaa8/attachment.html>

More information about the 2d-dev mailing list