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

NULL-pointer dereferencing in LIR_OpProfileType::print_instr

XMLWordPrintable

    • b55

        On 02/13/2015 12:39 PM, Filipp Zhinkin wrote:
        I've found yet another bug:
        NULL-pointer dereferencing in LIR_OpProfileType::print_instr.

        LIR_OpProfileType's exact_klass is either a valid ciKlass when we know
        it statically,
        or a NULL when we don't.
        Unfortunately, LIR_OpProfileType::print_instr is dereferencing it
        without a NULL-check.

        A patch with a fix as well as a hs_err file attached to this mail.

        I've decided to print "unknown" exact klass's value in case of NULL to
        be consistent
        with ciTypeEntries::print_ciklass. Missed whitespaces were also added.

        // Personally, I would like to print something that starts with a
        character that could not
        // be a part of a valid java identifier's name (like <unknown>,
        <none>, etc.) in order
        // to distinguish special values from "unknown" and "none" classes.

              fzhinkin Filipp Zhinkin
              iignatyev Igor Ignatyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: