On Wed, 23 Jul 2025 13:50:37 GMT, Matthias Baesken <[email protected]> wrote:

> When using the GCC static analyzer (-fanalyzer) the following issue is 
> reported :
> `src/java.desktop/share/native/common/java2d/opengl/OGLContext.c:487:9: 
> warning: use of possibly-NULL '*oglc.xformMatrix' where non-null expected 
> [CWE-690] [-Wanalyzer-possible-null-argument]`
> 
> Seems we miss a NULL check of the return value of malloc (at most other 
> places in the coding we do it).

This pull request has now been integrated.

Changeset: d25ad881
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/d25ad881ebfec40ca6b0a73f78d1f9d2cb722e01
Stats:     1 line in 1 file changed: 1 ins; 0 del; 0 mod

8363676: [GCC static analyzer] missing return value check of malloc in 
OGLContext_SetTransform

Reviewed-by: psadhukhan

-------------

PR: https://git.openjdk.org/jdk/pull/26443

Reply via email to