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

Bug in ImageFileReader::open()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: tools

      Description


      ImageFileReader::open()

      ...
          // Need a new image reader.
          reader = new ImageFileReader(name, big_endian);
          if (reader == NULL || !reader->open()) {
              // Failed to open.
              delete reader;
              return NULL;
          }
      ..

      Obvious above check is wrong. If reader == NULL, it will crash JVM.

        Attachments

          Activity

            People

            Assignee:
            zgu Zhengyu Gu
            Reporter:
            zgu Zhengyu Gu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: