VirtualBox

Changeset 25340 in vbox


Ignore:
Timestamp:
Dec 11, 2009 10:45:46 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55934
Message:

ldrPE.cpp: Dropped VERR_LDRPE_SECURITY.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r25335 r25340  
    10261026/** The PE loader encountered delayed imports, a feature which hasn't been implemented yet. */
    10271027#define VERR_LDRPE_DELAY_IMPORT                 (-620)
    1028 /** The PE loader doesn't have a clue what the security data directory entry is all about. */
    1029 #define VERR_LDRPE_SECURITY                     (-621)
     1028
    10301029/** The PE loader doesn't know how to deal with the global pointer data directory entry yet. */
    10311030#define VERR_LDRPE_GLOBALPTR                    (-622)
  • 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