VirtualBox

Changeset 99418 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 17, 2023 12:51:19 PM (20 months ago)
Author:
vboxsync
Message:

Main/NvramStore: Be more careful with exceptions in C-interface routines (PDM,SSM,++) as these are defined to not throw exceptions (via DECLCALLBACK) and try avoid leaking the temporary memory buffer during saving/loading. bugref:10098

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/NvramStoreImpl.h

    r98103 r99418  
    4040#ifdef VBOX_COM_INPROC
    4141class Console;
     42struct DRVMAINNVRAMSTORE;
    4243#else
    4344class GuestOSType;
     
    135136#ifdef VBOX_COM_INPROC
    136137    static DECLCALLBACK(int)    i_SsmSaveExec(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM);
     138    static int                  i_SsmSaveExecInner(struct DRVMAINNVRAMSTORE *pThis, PCPDMDRVHLPR3 pHlp, PSSMHANDLE pSSM,
     139                                                   void **ppvData, size_t *pcbDataMax) RT_NOEXCEPT;
    137140    static DECLCALLBACK(int)    i_SsmLoadExec(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass);
     141    static int                  i_SsmLoadExecInner(struct DRVMAINNVRAMSTORE *pThis, PCPDMDRVHLPR3 pHlp, PSSMHANDLE pSSM,
     142                                                   uint32_t cEntries, void **ppvData, size_t *pcbDataMax) RT_NOEXCEPT;
    138143
    139144    static DECLCALLBACK(int)    i_nvramStoreQuerySize(PPDMIVFSCONNECTOR pInterface, const char *pszNamespace, const char *pszPath,
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