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

Reply via email to