Changeset 91672 in vbox for trunk/src/VBox/Runtime/r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp
- Timestamp:
- Oct 11, 2021 8:23:43 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp
r91633 r91672 340 340 341 341 /* 342 * Find the export directory. 342 * Find the export directory. It's okay if none is present too. 343 343 */ 344 344 IMAGE_DATA_DIRECTORY ExpDir = pNtHdrs->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT]; … … 347 347 || ExpDir.VirtualAddress >= pModInfo->cbImage 348 348 || 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 } 349 361 MODERR_RETURN("%s: Missing or invalid export directory: %#lx LB %#x\n", pModInfo->szName, ExpDir.VirtualAddress, ExpDir.Size); 362 } 350 363 pModInfo->offExportDir = ExpDir.VirtualAddress; 351 364 pModInfo->cbExportDir = ExpDir.Size;
Note:
See TracChangeset
for help on using the changeset viewer.