VirtualBox

Ignore:
Timestamp:
Aug 18, 2014 8:35:32 PM (10 years ago)
Author:
vboxsync
Message:

SUP,IPRT: Extended RTLdrQueryPropEx with a pvBits parameter, RTLDRPROP_IMPORT_COUNT and RTLDRPROP_IMPORT_MODULE. Hook LdrLoadDll to validate DLLs before they get to NtCreateSection and the loader code/data can be messed up (windows 7 / 32-bit crash). Allow the kernel to buffer the log file, no real need that each write hits the disk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrkStuff.cpp

    r52213 r52403  
    840840
    841841/** @interface_method_impl{RTLDROPS,pfnQueryProp} */
    842 static DECLCALLBACK(int) rtkldr_QueryProp(PRTLDRMODINTERNAL pMod, RTLDRPROP enmProp, void *pvBuf, size_t cbBuf, size_t *pcbRet)
     842static DECLCALLBACK(int) rtkldr_QueryProp(PRTLDRMODINTERNAL pMod, RTLDRPROP enmProp, void const *pvBits,
     843                                          void *pvBuf, size_t cbBuf, size_t *pcbRet)
    843844{
    844845    PRTLDRMODKLDR pThis = (PRTLDRMODKLDR)pMod;
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