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

C1: Possible integer overflow in LIRGenerator::generate_address on several platforms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • hotspot
    • b140

    Backports

      Description

        LIRGenerator::generate_address contains code to simplify constant index/displacement. Code like the following line uses int which may overflow:
        disp += index->as_constant_ptr()->as_jint() << shift;
        We should use 64 bit integer variables on 64 bit platforms.

        Attachments

          Issue Links

            Activity

              People

                mdoerr Martin Doerr
                mdoerr Martin Doerr
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: