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

check for NULL return from malloc is testing wrong variable name.

    Details

    • Subcomponent:
      2d
    • Introduced In Version:
    • Resolved In Build:
      b47
    • CPU:
      generic
    • OS:
      generic

      Description

      lcdglyph.c tests to see if malloc returns NULL but unfortunately the
      test looks like "if (malloc == NULL)", instead of "if (ptr == NULL)"

      Since its only an issue if malloc had actually failed and this is
      not particularly likely, this doesn't seem to have posed a problem
      in the 4 or 5 years the code has been in production, but clearly
      still merits a fix.

        Attachments

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              prr Philip Race
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: