Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4127654

Constructors for BufferedOutputStream, etc. can throw NegativeArraySizeException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 1.2.0
    • 1.2.0
    • core-libs
    • None
    • 1.2beta4
    • generic
    • generic
    • Not verified

    Description

      The current implementation of the constructors for BufferedOutputStream,
      BufferedInputStream, PushbackReader, PushbackInputStream and
      CharArrayWriter did not check for possible negative array sizes
      that will be passed in, in which case an undocumented
      NegativeArraySizeException will be thrown.

      See also bug 4015701.

      Attachments

        Issue Links

          Activity

            People

              zlisunw Zhenghua Li (Inactive)
              zlisunw Zhenghua Li (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: