[OpenJDK 2D-Dev] Fix for 8235904 "Infinite loop when rendering huge lines"
Philip Race
philip.race at oracle.com
Fri Jan 10 17:33:33 UTC 2020
Is there a regression test ?
I don't see a noreg- label.
-phil.
On 1/9/20, 12:51 AM, Clemens Eisserer wrote:
> Hi,
>
> Please review the fix for bug 8235904 "Infinite loop when rendering
> huge lines": http://cr.openjdk.java.net/~ceisserer/8235904/webrev.01/
>
> The issue was caused by integer overflow during clipping: While the
> original native code used int or long depending on the coordinate
> range, the java-port unconditionally always used ints - which led to
> the issue.
> The code was ported to java back then to avoid JNI overhead.
>
> A big thanks to Mario Torre for analyzing the issue in detail and
> bringing it to my attention.
>
> Thanks, Clemens
More information about the 2d-dev
mailing list