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

Bug in ImageFileReader::open()

    Details

    • Type: Bug
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • 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:
              Unassigned
              Reporter:
              zgu Zhengyu Gu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: