VirtualBox

Changeset 104483 in vbox


Ignore:
Timestamp:
May 2, 2024 4:24:55 PM (7 months ago)
Author:
vboxsync
Message:

libs/xpcom/ipc: Check that cloning a message was successful before placing it on the pending queue, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp

    r103505 r104483  
    14811481    // place a message clone to a target's event queue
    14821482    PCIPCMSG pMsg = (PCIPCMSG)userArg;
    1483     PlaceOnPendingQ(aKey, aData, IPC_MsgClone(pMsg));
     1483    PIPCMSG pClone = IPC_MsgClone(pMsg);
     1484    Assert(pClone);
     1485    if (pClone)
     1486       PlaceOnPendingQ(aKey, aData, pClone);
    14841487  }
    14851488
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