RFR: 8365609: Null pointer dereference in src/java.desktop/share/native/common/java2d/opengl/OGLBlitLoops.c OGLBlitToSurfaceViaTexture()
Sergey Bylokhov
serb at openjdk.org
Fri Aug 15 17:08:09 UTC 2025
On Fri, 15 Aug 2025 13:04:35 GMT, Artem Semenov <asemenov at openjdk.org> wrote:
>The pointer pf is dereferenced in line 324 without checking for nullptr, although earlier in line 274 the same pointer is checked for nullptr, which indicates that it can be null.
It is better first to confirm whether this pointer can actually be NULL. If it cannot then remove the unnecessary earlier NULL check.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26799#issuecomment-3192199237
More information about the client-libs-dev
mailing list