Improve offset arithmetic in ArraysSupport::mismatch

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 11, 17, 21, 25, 26
    • Component/s: core-libs
    • None
    • In Review

      Some of the ArraysSupport::mismatch family of methods compute offsets using a mix of int and long arithmetic.
      This can lead to wrong results, which are then passed as arguments to an intrinsic method or to a Java method using Unsafe.
      This fix is aimed at correcting the arithmetic.

            Assignee:
            Raffaello Giulietti
            Reporter:
            Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: