[OpenJDK 2D-Dev] RFR 8149338: JVM Crash caused by Marlin renderer not handling NaN coordinates
Laurent Bourgès
bourges.laurent at gmail.com
Mon Feb 8 21:22:45 UTC 2016
Phil & Jim,
Please review a simple fix for a SEGV in Marlin renderer due to NaN
coordinates:
bug: https://bugs.openjdk.java.net/browse/JDK-8149338
webrev: http://cr.openjdk.java.net/~lbourges/marlin/marlin-8149338.0/
Changes:
- addLine: use first / last Y crossings to compute edge min/max Y that
ensures consistency with edgeBuckets / edgeBucketCounts arrays in case of
NaN values: it is used in dispose() to reset these critical arrays
(pointer-like) => robust and consistent zero-fill
- minor cleanup in closePath() to avoid upscaling coordinates
- added crash test
Cheers,
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160208/e844bdc5/attachment.html>
More information about the 2d-dev
mailing list