GeezerVison is showing github.com — Vertx sliced buffers can be overwritten by channel writes · Issue #4517 · eclipse-vertx/vert.x
Vertx sliced buffers can be overwritten by channel writes #4517
Description
Vertx sends ByteBuf duplicates when a Buffer is written to a pipeline. In some cases, such buffer can be appended to by the SslHandlerCoalescingBufferQueue because a duplicate of a slice will be a duplicate and not a slice itself, leading to buffer corruption.
Activity
added a commit that references this issue
on Oct 24, 2022This issue will close once commit 2f53735 is merged into the 'master' branch.2f53735 liubao68 commented on Dec 26, 2022
This modification changed the meaning of the method in Buffer. Maybe the java doc for Buffer should be updated also, or a new method should be added.
/**
* Returns the Buffer as a Netty {@code ByteBuf}.
*
* <p> The returned buffer is a duplicate that maintain its own indices.
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
ByteBuf getByteBuf();
vietj commented on Dec 26, 2022
this method should not actually be public, however we can update the
javadoc for it
…
On Mon, Dec 26, 2022 at 3:51 AM liubao68 ***@***.***> wrote:
This modification changed the meaning of the method in Buffer. Maybe the
java doc for Buffer should be updated also, or a new method should be added.
/**
* Returns the Buffer as a Netty ***@***.*** ByteBuf}.
*
* <p> The returned buffer is a duplicate that maintain its own indices.
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
ByteBuf getByteBuf();
—
Reply to this email directly, view it on GitHub
<
#4517 (comment)>,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AABXDCTHTYZIPDSCVS2IRWLWPEBZTANCNFSM6AAAAAARMX6RIA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
added a commit that references this issue
on Feb 3, 2024This issue will close once commit bb5c9e7 is merged into the 'master' branch.bb5c9e7
Metadata
Metadata
Development
No branches or pull requestsIssue actions