In the case where a heap buffer is supplied the implementation copies the data into a temporary native buffer before going native. The position and remaining data is incorrectly determined for this temporary buffer when the position of the original buffer is not 0.

Also, remove incorrect assertion from implementation.

CR 6916890: SctpChannel.send may cause IAE if given a heap buffer with an offset

Webrev:
  http://cr.openjdk.java.net/~chegar/6916890/webrev.0/webrev/

Thanks,
-Chris.

Reply via email to