RFR: 8357299: Graphics copyArea doesn't copy any pixels when there is overflow

Sergey Bylokhov serb at openjdk.org
Wed May 21 07:35:01 UTC 2025


On Wed, 21 May 2025 07:23:28 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> src/java.desktop/share/native/libawt/java2d/loops/Blit.c line 77:
>> 
>>> 75:     srcInfo.bounds.x1 = srcx;
>>> 76:     srcInfo.bounds.y1 = srcy;
>>> 77:     if (UNSAFE_TO_ADD(srcx, width) ||
>> 
>> isn't the MaskBlit_MaskBlit use the same pattern?
>
> But that doesn't cause any issue to the testcase given and existing testcase..Do you have any testcase which doesnt work because of MaskBlit pattern?

I have not tried to create a test for MaskBlit, only for a simple Blit. I will take a look at the possibility of reproducing it.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25340#discussion_r2099573773


More information about the client-libs-dev mailing list