RFR: 8365609: Null pointer dereference in src/java.desktop/share/native/common/java2d/opengl/OGLBlitLoops.c OGLBlitToSurfaceViaTexture()
Phil Race
prr at openjdk.org
Wed Aug 20 05:29:38 UTC 2025
On Fri, 15 Aug 2025 13:04:35 GMT, Artem Semenov <asemenov at openjdk.org> wrote:
> The defect has been detected and confirmed in the function OGLBlitToSurfaceViaTexture() located in the file src/java.desktop/share/native/common/java2d/opengl/OGLBlitLoops.c with static code analysis. This defect can potentially lead to a null pointer dereference.
>
> 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.
>
> According to [this](https://github.com/openjdk/jdk/pull/26002#issuecomment-3023050372) comment, this PR contains fixes for similar cases in other places.
There seem to be un-related changes in this PR. Please check.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26799#issuecomment-3204241480
More information about the client-libs-dev
mailing list