1) The spec for the constructors needs to be updated to include this
reason for throwing ImagingOpException. A CCC request will be needed.

2) The C usage of "isnan()" may be problematic in some compilation environments. For example I believe this will not compile with VS2010, and many folks still use that. Instead you could use matrix[j] != matrix[j] as the two values should not compare
equal if it is NaN.

-phil.

On 08/10/2016 04:15 AM, Ajit Ghaisas wrote:
Hi,

     Bug : https://bugs.openjdk.java.net/browse/JDK-8158356

     Issue : AffineTransform using NaN value as input parameter results in 
SIGSEGV.

     Fix : Transformation matrix is checked for NaN values in 
AffineTransformOp.validateTransform().
              Also, at native level a separate check is made to return error in 
case of NaN values.

     Webrev : http://cr.openjdk.java.net/~aghaisas/8158356/webrev.00/

     Request you to review.

Regards,
Ajit


Reply via email to