GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Vertx sliced buffers can be overwritten by channel writes#4517
Copy link
Assignees
vietj
Labels
bug
Milestone
4.3.5

Description

@vietj
vietj
opened on Oct 24, 2022
Issue body actions

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

  1. vietj
    added
    bug
    on Oct 24, 2022
  2. vietj
    added this to the 4.3.5 milestone on Oct 24, 2022
  3. vietj
    self-assigned this
    on Oct 24, 2022
  4. vietj
    added a commit that references this issue on Oct 24, 2022

    Vertx sends ByteBuf duplicates when a Buffer is written to a pipeline…

    This issue will close once commit 2f53735 is merged into the 'master' branch.
    2f53735
  5. vietj
    closed this as completedin bb5c9e7on Oct 25, 2022
  6. liubao68 commented on Dec 26, 2022

    @liubao68
    liubao68
    on Dec 26, 2022
    More actions

    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();
    
  7. vietj commented on Dec 26, 2022

    @vietj
    vietj
    on Dec 26, 2022 via email
    MemberAuthor
    More actions
    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: ***@***.***>
  8. cescoffier
    added a commit that references this issue on Feb 3, 2024

    Vertx sends ByteBuf duplicates when a Buffer is written to a pipeline…

    This issue will close once commit bb5c9e7 is merged into the 'master' branch.
    bb5c9e7
  9. chrisvest
    added 2 commits that reference this issue on Jun 3, 2024

    Duplicate of slice should have the same capacity as the original slic…

    e9caa97

    Duplicate of slice should have the same capacity as the original slic…

    21e5411
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @vietj
    vietj

Labels

bug

Type

No type

Projects

No projects

    Milestone

    • 4.3.5

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.