Integrated: 8315958: Missing range checks in GlassPasteboard
Kevin Rushforth
kcr at openjdk.org
Wed Sep 13 12:13:52 UTC 2023
On Mon, 11 Sep 2023 15:55:44 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
> This PR adds missing range checks in the native `_getItemAsRawImage` and `ByteArrayFromPixels` methods in `GlassPasteboard.m` (for both mac and ios).
>
> Note that these checks are _very_ unlikely to ever detect an error in practice, since they would require a huge image to be copied to the macOS system clipboard (larger than can be created using a Java program). If this were to be detected, no exception would (or should be) thrown, given that the method that triggers this is the reading of the clipboard (so there is nothing that the application is doing wrong for which an exception would make sense).
This pull request has now been integrated.
Changeset: 7c8dd1ec
Author: Kevin Rushforth <kcr at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/7c8dd1eca1a1114acd85471cd764ebf1941dda7c
Stats: 19 lines in 2 files changed: 14 ins; 0 del; 5 mod
8315958: Missing range checks in GlassPasteboard
Reviewed-by: arapte, mstrauss, jvos
-------------
PR: https://git.openjdk.org/jfx/pull/1238
More information about the openjfx-dev
mailing list