Changeset 25340 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Dec 11, 2009 10:45:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp
r25259 r25340 44 44 #include "internal/ldrPE.h" 45 45 #include "internal/ldr.h" 46 47 46 48 47 … … 1010 1009 { 1011 1010 const uint16_t CorrectMagic = pFileHdr->SizeOfOptionalHeader == sizeof(IMAGE_OPTIONAL_HEADER32) 1012 ? IMAGE_NT_OPTIONAL_HDR32_MAGIC : IMAGE_NT_OPTIONAL_HDR64_MAGIC;1011 ? IMAGE_NT_OPTIONAL_HDR32_MAGIC : IMAGE_NT_OPTIONAL_HDR64_MAGIC; 1013 1012 if (pOptHdr->Magic != CorrectMagic) 1014 1013 { … … 1114 1113 return VERR_LDRPE_DELAY_IMPORT; 1115 1114 1116 /* The security directory seems to be some kind of hack, and the rva is a fileoffset or something. */1117 1115 case IMAGE_DIRECTORY_ENTRY_SECURITY: // 4 1116 /* The VirtualAddress is a PointerToRawData. */ 1118 1117 cb = (size_t)cbRawImage; Assert((RTFOFF)cb == cbRawImage); 1119 1118 Log(("rtldrPEOpen: %s: dir no. %d (SECURITY) VirtualAddress=%#x Size=%#x is not supported!!!\n", 1120 1119 pszLogName, i, pDir->VirtualAddress, pDir->Size)); 1121 #if 0 /** @todo correctly validate this! Ignoring it for the present. */1122 return VERR_LDRPE_SECURITY;1123 #else1124 1120 break; 1125 #endif1126 1121 1127 1122 case IMAGE_DIRECTORY_ENTRY_GLOBALPTR: // 8 /* (MIPS GP) */ … … 1135 1130 return VERR_LDRPE_TLS; 1136 1131 1137 case IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR: 1132 case IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR:// 14 1138 1133 Log(("rtldrPEOpen: %s: dir no. %d (COM_DESCRIPTOR) VirtualAddress=%#x Size=%#x is not supported!!!\n", 1139 1134 pszLogName, i, pDir->VirtualAddress, pDir->Size));
Note:
See TracChangeset
for help on using the changeset viewer.