RFR: 8300167: Add validation of the raster's layout before using in native
Phil Race
prr at openjdk.org
Wed Jan 18 17:03:15 UTC 2023
On Sat, 14 Jan 2023 07:23:18 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> Currently, we always validate image layouts passed from java to native, except for some types of rasters. One of the reasons why the rasters are skipped is that they are not public and have their own validation during construction. But it is unclear how it works in the multithreaded case. All these objects are not thread-safe - could it be possible that we can get the raster that is not completely constructed/validated?
>
> FYI I have started to look into this method because when I did an accidental typo in pixel format in this method I got the same symptoms/crash as described [here](https://bugs.openjdk.org/browse/JDK-8278101). It might be unrelated but it is safer to fix.
Marked as reviewed by prr (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/12004
More information about the client-libs-dev
mailing list