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

C2: add randomized/fuzzing tests to stress LibraryCallKit::generate_string_range_check with edge values

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 11, 17, 21, 24
    • hotspot

      While investigating "LibraryCallKit::generate_string_range_check" for integer overflow we noticed that there doesn't seem to be any test exercizing count values close to max int (and min int).
      As the intrinsic doesn't add any range check, we should add (randomized or fuzzing) tests to check that calls to connected StringLatin1 and StringUTF16 methods don't unexpectedly cause any overflow (in particular with the LShift node added by generate_string_range_check).

            Unassigned Unassigned
            dfenacci Damon Fenacci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: