On Wed, 4 Mar 2026 23:05:35 GMT, Phil Race <[email protected]> wrote:

>The example that fails above is disallowed by the above spec. statement which 
>was not previously enforced.

The spec says the 
[opposite](https://github.com/openjdk/jdk/blob/1f4a7bbb9d67fdaaf63a70d92df895aea41ad201/src/java.desktop/share/classes/java/awt/image/DataBufferInt.java#L120)
>Only elements {@code offset} through {@code offset} + {@code size} - 1 should 
>be used by accessors of this {@code DataBuffer}.

so the check should be (i + offset) >= (offset + size) or i >= size, not (i + 
offset) >= size.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29766#discussion_r2887043043

Reply via email to