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

DatagramPacket does not uniformly enforce offset+length constraint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.2.2
    • core-libs
    • None
    • beta
    • generic
    • generic

      The DatagramPacket constructors and setData(buf, offset, length) enforce the constraint that offset+length <= buf.length. But setLength and setData(buf) do not enforce this. It seems like they should.

            ywangsunw Yingxian Wang (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: