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

check ZALLOC return values in awt coding

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      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

                • Assignee:
                  mbaesken Matthias Baesken
                  Reporter:
                  mbaesken Matthias Baesken
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: