Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2784

[PATCH] FOP-2738: correct array offset when string span interator is used

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.2
    • None
    • font/unqualified
    • None
    • Patch

    Description

      This patch fixes FOP-2738.

      The issue occurred when code in GlyphMapping.java was used with string span iterator. This kind of iterator points somewhere in the string, not necessarily the start; however, iterator indexes were used to index into an array, which caused an exception in some cases. Fix removes iterator index offset in addLetterAdjust.

      Reproducing:

      fop -c fop.conf fop1.fo fop1.pdf
      

      Attachments

        1. 0001-FOP-2738-correct-array-offset-when-string-span-inter.patch
          1 kB
          Vlad Ivanov
        2. fop.conf
          0.3 kB
          Vlad Ivanov
        3. fop1.fo
          1 kB
          Vlad Ivanov
        4. image.svg
          4 kB
          Vlad Ivanov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vladislav Vlad Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: