VirtualBox

Ignore:
Timestamp:
Oct 7, 2021 9:28:07 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147354
Message:

SharedClipboard/common: ShClEventSignal must clear pEvent->pPayload if RTSemEventMultiSignal fails, otherwise it the payload could be freed twice. Don't leak semaphores in ShClEventIdGenerateAndRegister failure path. Three longish r=bird comments on the insanity of the event interface. [scm fix] bugref:9437

File:
1 edited

Legend:

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

    r91628 r91629  
    369369 * @param   ppPayload           Where to store the (allocated) event payload on success. Needs to be free'd with
    370370 *                              SharedClipboardPayloadFree(). Optional.
    371  * 
     371 *
    372372 * @todo    r=bird: Locking protocol is totally buggered here, or at least not
    373373 *          explained in any way whatsoever.  We cannot really do shclEventGet
Note: See TracChangeset for help on using the changeset viewer.

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