VirtualBox

Changeset 53692 in vbox for trunk/src/VBox/ExtPacks


Ignore:
Timestamp:
Jan 2, 2015 12:41:52 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: dtps_getargdesc fixes (r69)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0.cpp

    r53691 r53692  
    15301530    PSUPDRVVDTPROVIDERCORE  pProv  = (PSUPDRVVDTPROVIDERCORE)pvProv;
    15311531    unsigned                uArg   = pArgDesc->dtargd_ndx;
     1532    pArgDesc->dtargd_ndx = DTRACE_ARGNONE;
    15321533
    15331534    if (!pProv->TracerData.DTrace.fZombie)
     
    15371538        PVTGDESCARGLIST pArgList   = (PVTGDESCARGLIST)((uintptr_t)pProv->pHdr->paArgLists + pProbeDesc->offArgList);
    15381539
    1539         Assert(pProbeDesc->offArgList < pProv->pHdr->cbArgLists);
    1540         if (pArgList->cArgs > uArg)
     1540        AssertReturnVoid(pProbeDesc->offArgList < pProv->pHdr->cbArgLists);
     1541        if (uArg < pArgList->cArgs)
    15411542        {
    15421543            const char *pszType = vboxDtVtgGetString(pProv->pHdr, pArgList->aArgs[uArg].offType);
     
    15451546            {
    15461547                memcpy(pArgDesc->dtargd_native, pszType, cchType + 1);
    1547                 /** @todo mapping */
     1548                pArgDesc->dtargd_ndx = uArg;
     1549                /** @todo mapping? */
    15481550                return;
    15491551            }
     
    15511553    }
    15521554
    1553     pArgDesc->dtargd_ndx = DTRACE_ARGNONE;
    15541555}
    15551556
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