Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8363676

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

XMLWordPrintable

    • 2d
    • b09
    • 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).

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: