VirtualBox

Changeset 52416 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Aug 19, 2014 2:40:27 PM (10 years ago)
Author:
vboxsync
Message:

SUPR3HardenedMainImports-win.cpp: Fixed bug in x86 syscall variation for functions not taking any parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMainImports-win.cpp

    r52375 r52416  
    498498                    && pbFunction[11] == pSyscall->cbParams
    499499                    && pbFunction[12] == 0x00)
    500                 || (   pbFunction[12] == 0xc3 /* ret */
     500                || (   pbFunction[10] == 0xc3 /* ret */
    501501                    && pSyscall->cbParams == 0)
    502502               )
     
    512512     * Failed to parse it.
    513513     */
     514    volatile uint8_t abCopy[16];
     515    memcpy((void *)&abCopy[0], pbFunction, sizeof(abCopy));
    514516    SUPHNTIMP_ERROR(17, "supR3HardenedWinInitImports", kSupInitOp_Misc, rc,
    515                     "%ls: supHardNtLdrCacheOpen failed: %Rrc '%s'.", g_aSupNtImpDlls[iDll].pwszName, rc);
     517                    "%ls: supHardNtLdrCacheOpen failed: '%s': %.16Rhxs",
     518                    g_aSupNtImpDlls[iDll].pwszName, pImport->pszName, &abCopy[0]);
    516519}
    517520
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