Integrated: 8328703: Illegal accesses in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ioctl0
Jan Lahoda
jlahoda at openjdk.org
Thu Apr 25 08:14:34 UTC 2024
On Tue, 23 Apr 2024 09:48:22 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> There is a structure called `winsize`, that is read on Linux and Mac to get the size of the terminal. This is part of JLine, which we use. This structure has fields of type `short`. But, our native counterpart (which is not from JLine, because JLine uses JNA to retrieve the values) uses `GetIntField`/`SetIntField` to access the data.
>
> This patch fixes that to use `GetShortField`/`SetShortField`.
This pull request has now been integrated.
Changeset: 87e864bf
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/87e864bf21d71daae4e001ec4edbb4ef1f60c36d
Stats: 16 lines in 2 files changed: 0 ins; 0 del; 16 mod
8328703: Illegal accesses in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ioctl0
Reviewed-by: asotona, shade
-------------
PR: https://git.openjdk.org/jdk/pull/18910
More information about the kulla-dev
mailing list