RFR: 6185110: Undefined behaviour of SampleModel for width, height < 0 [v4]
Phil Race
prr at openjdk.org
Tue Nov 25 20:35:42 UTC 2025
On Tue, 25 Nov 2025 03:31:30 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 6185110
>
> src/java.desktop/share/classes/java/awt/image/MultiPixelPackedSampleModel.java line 451:
>
>> 449: * not large enough to hold the pixel data
>> 450: * @see #setDataElements(int, int, Object, DataBuffer)
>> 451: * @throws NullPointerException if {@code data} is null.
>
> what about {@code obj}, guess it will throw NPE too?
No, in fact it won't. See the code.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27754#discussion_r2561317957
More information about the client-libs-dev
mailing list