VirtualBox

Changeset 104791 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 27, 2024 3:11:54 PM (6 months ago)
Author:
vboxsync
Message:

Shared Clipboard: X11: Remove assertion when backing buffer is not big enough to store clipboard data, bugref:10698.

When X11 clipboard content needs to be copied from host/guest to the other side, default
buffer size (4K) initially will be used for such transfer. If this buffer is not big enough,
OVERFLOW error code should be sent back and new buffer size should be specified as well. This
asertion prevented this, and sent just OVERFLOW error without specifying new buffer size. As
a result, buffer >4K could not be copied.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r104693 r104791  
    27412741                    PSHCLX11RESPONSE pResp = (PSHCLX11RESPONSE)pPayload->pvData;
    27422742                    AssertReturn(pResp->enmType == SHCLX11EVENTTYPE_READ, VERR_INVALID_PARAMETER);
    2743                     AssertReturn(pResp->Read.cbData <= cbMax, VERR_BUFFER_OVERFLOW); /* Paranoia. */
    27442743
    27452744                    pPayload->pvData = NULL; /* pvData (pResp) is owned by ppResp now. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette