VirtualBox

Changeset 100018 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
May 30, 2023 5:19:51 PM (18 months ago)
Author:
vboxsync
Message:

Shared Clipboard/HostService: Check for payload data here. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp

    r99966 r100018  
    550550                if (RT_SUCCESS(rc))
    551551                {
    552                     rc = ShClTransferRootsSet(pTransfer,
    553                                               (char *)pPayload->pvData, pPayload->cbData + 1 /* Include termination */);
     552                    if (pPayload)
     553                    {
     554                        rc = ShClTransferRootsSet(pTransfer,
     555                                                  (char *)pPayload->pvData, pPayload->cbData + 1 /* Include termination */);
     556                    }
     557                    else
     558                        rc = VERR_NO_DATA; /* No payload. */
    554559                }
    555560            }
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