VirtualBox

Changeset 91630 in vbox


Ignore:
Timestamp:
Oct 7, 2021 9:28:39 PM (3 years ago)
Author:
vboxsync
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

    r91629 r91630  
    326326 * @returns VBox status code.
    327327 * @param   pSource             Event source to unregister event for.
    328  * @param   uID                 Event ID to unregister. 
    329  * 
     328 * @param   uID                 Event ID to unregister.
     329 *
    330330 * @todo    r=bird: The caller must enter crit sect protecting the event source
    331331 *          here, must it?  See explanation in ShClEventWait.
     
    374374 *          and shclEventPayloadDetachInternal w/o holding the critical section
    375375 *          protecting that list, otherwise wtf is the point of the locking.
    376  * 
     376 *
    377377 *          More to the point, ShClEventSignal is called on the HGCM service
    378378 *          thread and would be racing the host clipboard worker thread/whomever
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