[OpenJDK 2D-Dev] Fix for 8235904 "Infinite loop when rendering huge lines"
Clemens Eisserer
linuxhippy at gmail.com
Thu Jan 9 08:51:36 UTC 2020
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