FlatteningPathIterator constructor raises NegativeArraySizeException with large int arg

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: client-libs
    • None
    • 2d
    • sparc
    • solaris

      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).

            Assignee:
            Alexey Ushakov
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: