VirtualBox

Changeset 25340 in vbox for trunk/src


Ignore:
Timestamp:
Dec 11, 2009 10:45:46 PM (15 years ago)
Author:
vboxsync
Message:

ldrPE.cpp: Dropped VERR_LDRPE_SECURITY.

File:
1 edited

Legend:

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

    r25259 r25340  
    4444#include "internal/ldrPE.h"
    4545#include "internal/ldr.h"
    46 
    4746
    4847
     
    10101009{
    10111010    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;
    10131012    if (pOptHdr->Magic != CorrectMagic)
    10141013    {
     
    11141113                return VERR_LDRPE_DELAY_IMPORT;
    11151114
    1116             /* The security directory seems to be some kind of hack, and the rva is a fileoffset or something. */
    11171115            case IMAGE_DIRECTORY_ENTRY_SECURITY:      // 4
     1116                /* The VirtualAddress is a PointerToRawData. */
    11181117                cb = (size_t)cbRawImage; Assert((RTFOFF)cb == cbRawImage);
    11191118                Log(("rtldrPEOpen: %s: dir no. %d (SECURITY) VirtualAddress=%#x Size=%#x is not supported!!!\n",
    11201119                     pszLogName, i, pDir->VirtualAddress, pDir->Size));
    1121 #if 0 /** @todo correctly validate this! Ignoring it for the present. */
    1122                 return VERR_LDRPE_SECURITY;
    1123 #else
    11241120                break;
    1125 #endif
    11261121
    11271122            case IMAGE_DIRECTORY_ENTRY_GLOBALPTR:     // 8   /* (MIPS GP) */
     
    11351130                return VERR_LDRPE_TLS;
    11361131
    1137             case IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR: // 14
     1132            case IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR:// 14
    11381133                Log(("rtldrPEOpen: %s: dir no. %d (COM_DESCRIPTOR) VirtualAddress=%#x Size=%#x is not supported!!!\n",
    11391134                     pszLogName, i, pDir->VirtualAddress, pDir->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