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

Illegal accesses in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ioctl0

    XMLWordPrintable

Details

    • b20
    • linux

    Backports

      Description

        In Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ioctl0 we see:

            ws.ws_xpixel = env->GetIntField(data, ws_xpixel);

        This is wrong: all of the fields in class winsize are of type short.

        I don't know if this bug is confined to this particular method.

        As an aside, I'm shocked that the JNI accessors, even in debug mode, don't check the types of the fields they access.

        Attachments

          Issue Links

            Activity

              People

                jlahoda Jan Lahoda
                aph Andrew Haley
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: