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

AIOOBE in DWGlyphLayout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • None

      DWGlyphLayout#getIndices can throw an exception on line:

      if (indices[clusterMap[i]] == -1)

      The originates in renderShape(), at renderer.GetClusterMap(clusterMap, textStart)
      inspecting the native code we have;
          for (i = 0; i < copiedCount; i++) {
              data[i + start] = map[i] + (jshort)start;
          }


      but if data (clusterMap) is a map from the character offsets to glyph indices then adding the same offset (start) on both sides must be wrong.

            fheidric Felipe Heidrich (Inactive)
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: