[OpenJDK 2D-Dev] [8u Backport] Fix for JDK-8158356 : SIGSEGV when attempting to rotate BufferedImage using AffineTransform by NaN degrees

Ajit Ghaisas ajit.ghaisas at oracle.com
Thu Sep 1 09:14:56 UTC 2016



   This is a review request for 8u back-port of the fix done in JDK-9.


Bug : 



Root cause :

   The root cause of the crash is - NaN is converted to an integer and used as array index in mlib_ImageScanPoly.c.


Fix :

   The native method previously did not check the validity of the input double argument. Now, I have added a check for finite double values.


Webrev :




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160901/c8dcfc67/attachment.html>

More information about the 2d-dev mailing list