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.
- relates to
-
JDK-4203729 DatagramPacket.setData has strange semantics
-
- Resolved
-