On Fri, 16 Oct 2026 10:38:16 GMT, Matthias Baesken <[email protected]> wrote:
> The gcc static analyzer reports this issue : > > `src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c:181:13: > warning: dereference of NULL 'xsdo' [CWE-476] [-Wanalyzer-null-dereference]` > > Seems we should better NULL-check the result of > ` X11SDOps *xsdo = X11SurfaceData_GetOps(env, this);` > because the function potentially returns NULL. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 7aedb92e Author: Matthias Baesken <[email protected]> URL: https://git.openjdk.org/jdk/commit/7aedb92e9a32bd50c230d69f201464c9798e3275 Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod 8392561: [GCC static analyzer] potential dereference of NULL pointer xsdo in Java_sun_java2d_x11_XSurfaceData_isDrawableValid Reviewed-by: prr, lucy ------------- PR: https://git.openjdk.org/jdk/pull/33410
