8283577: SSLEngine.unwrap on read-only input ByteBuffer

Reviewed-by: wetmore
This commit is contained in:
Anthony Scarpino 2022-05-17 21:39:11 +00:00
parent 61ddbef368
commit f17c68ce4a
3 changed files with 373 additions and 102 deletions

View file

@ -755,8 +755,8 @@ public abstract class SSLEngine {
* The underlying memory used by the {@code src} and
* {@code dsts ByteBuffer}s must not be the same.
* <P>
* The inbound network buffer may be modified as a result of this
* call: therefore if the network data packet is required for some
* The inbound network buffer, {@code src}, may be modified as a result of
* this call: therefore if the network data packet is required for some
* secondary purpose, the data should be duplicated before calling this
* method. Note: the network data will not be useful to a second
* SSLEngine, as each SSLEngine contains unique random state which