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

crash in freetypeScaler.c CopyBW2Grey8

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b29
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        The jck13 test

        api/javax_swing/SwingUtilities/other.html

        test crashes on linuxaarch64 .
        It seems that for some reason a buffer overrun occurs in CopyBW2Grey8 .
        ( src/java.desktop/share/native/libfontmanager/freetypeScaler.c ).

        I added output to the coding of freetypeScaler.c CopyBW2Grey8, this shows why the crash occurs . The pointer src8 goes over the allowed src image size.

        Crash is at :
        # C [libfontmanager.so+0xb86c] CopyBW2Grey8+0x164

        We notice the crash on linuxaarch64 (but similar crashes can be seen on Solaris Sparc).

        Further investigation shows that the linuxaarch64 crash was seen on a SLES15 (Suse Linux 15) machine. But with linux ppc64le and linux x86_64 on SLES15, the crash occurs too so it seems to be a SLES15 related issue .
        A small standalone java program is attached that shows the issue.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                prr Philip Race
                Reporter:
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: