VirtualBox

Ignore:
Timestamp:
Jun 7, 2016 2:17:38 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107879
Message:

XPCOM: Added missing error checks to 32-bit Solaris dispatch stub code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_solaris.cpp

    r1 r61542  
    5959    self->GetInterfaceInfo(&iface_info);
    6060    NS_ASSERTION(iface_info,"no interface info");
     61    if (!iface_info)
     62        return NS_ERROR_UNEXPECTED;
    6163
    6264    iface_info->GetMethodInfo(PRUint16(methodIndex), &info);
    63     NS_ASSERTION(info,"no interface info");
     65    NS_ASSERTION(info,"no method info");
     66    if (!info)
     67        return NS_ERROR_UNEXPECTED;
    6468
    6569    paramCount = info->GetParamCount();
     
    7175        dispatchParams = paramBuffer;
    7276    NS_ASSERTION(dispatchParams,"no place for params");
     77    if (!dispatchParams)
     78        return NS_ERROR_OUT_OF_MEMORY;
    7379
    7480    PRUint32* ap = args;
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