On Mon, 11 Sep 2023 15:55:44 GMT, Kevin Rushforth <[email protected]> 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). Marked as reviewed by mstrauss (Committer). ------------- PR Review: https://git.openjdk.org/jfx/pull/1238#pullrequestreview-1623453967
