-
Bug
-
Resolution: Fixed
-
P4
-
25, 26
-
b09
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8366518 | 25.0.2 | Matthias Baesken | P4 | Resolved | Fixed | master |
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).
- backported by
-
JDK-8366518 [GCC static analyzer] missing return value check of malloc in OGLContext_SetTransform
-
- Resolved
-
- relates to
-
JDK-8362516 Support of GCC static analyzer (-fanalyzer)
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk25u/f9713d15
-
Commit(master) openjdk/jdk/d25ad881
-
Review(master) openjdk/jdk25u/138
-
Review(master) openjdk/jdk/26443
(1 links to)