-
Bug
-
Resolution: Unresolved
-
P4
-
25, 26
-
None
-
generic
-
generic
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).
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).
- relates to
-
JDK-8362516 Support of GCC static analyzer (-fanalyzer)
-
- New
-
- links to
-
Review(master) openjdk/jdk/26443