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.

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

                Created:
                Updated:
                Resolved: