JDK-6514553 : FlatteningPathIterator constructor raises NegativeArraySizeException with large int arg
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: solaris
  • CPU: sparc
  • Submitted: 2007-01-18
  • Updated: 2012-01-16
Related Reports
Relates :  
Description
When the following constructor from java.awt.geom.FlatteningPathIterator:

   public FlatteningPathIterator(PathIterator src, double flatness,
				  int limit)

is called with the limit argument set to Integer.MAX_VALUE, it throws java.lang.NegativeArraySizeException.

This issue was reported to ###@###.### by E. Kellinis, but it is not considered a security issue (more details in the comments).