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

check ZALLOC return values in awt coding

XMLWordPrintable

    • b17
    • generic
    • generic

        ZALLOC is a macro using calloc, see :

        jdk/src/java.desktop/unix/native/common/awt/awt_p.h
        /* allocated and initialize a structure */
        #define ZALLOC(T) ((struct T *)calloc(1, sizeof(struct T)))

        so the return value has to be checked which is missing at some places.

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

                Created:
                Updated:
                Resolved: