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

check ZALLOC return values in awt coding

    XMLWordPrintable

Details

    • b17
    • generic
    • generic

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: