VirtualBox

Ignore:
Timestamp:
Oct 11, 2021 8:23:43 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/dbgkrnlinfo-r0drv-nt.cpp: Now that we've got pseudo symbols, a module is 'okay' even if it doesn't have an export table. bugref:10118

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp

    r91633 r91672  
    340340
    341341    /*
    342      * Find the export directory.
     342     * Find the export directory.  It's okay if none is present too.
    343343     */
    344344    IMAGE_DATA_DIRECTORY ExpDir = pNtHdrs->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT];
     
    347347        || ExpDir.VirtualAddress >= pModInfo->cbImage
    348348        || ExpDir.VirtualAddress + ExpDir.Size > pModInfo->cbImage)
     349    {
     350        if (ExpDir.Size == 0 && ExpDir.VirtualAddress == 0)
     351        {
     352            pModInfo->offExportDir      = 0;
     353            pModInfo->cbExportDir       = 0;
     354            pModInfo->cNamedExports     = 0;
     355            pModInfo->cExports          = 0;
     356            pModInfo->paoffExports      = NULL;
     357            pModInfo->paoffNamedExports = NULL;
     358            pModInfo->pau16NameOrdinals = NULL;
     359            return true;
     360        }
    349361        MODERR_RETURN("%s: Missing or invalid export directory: %#lx LB %#x\n", pModInfo->szName, ExpDir.VirtualAddress, ExpDir.Size);
     362    }
    350363    pModInfo->offExportDir = ExpDir.VirtualAddress;
    351364    pModInfo->cbExportDir  = ExpDir.Size;
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