VirtualBox

Changeset 66843 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 9, 2017 8:28:10 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115300
Message:

Support/posix: Fix order of the pushed return address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/posix/SUPR3HardenedMain-posix.cpp

    r66841 r66843  
    471471            uintptr_t uAddrReturn = (uintptr_t)pbPatchMem;
    472472            *pbPatchMemPush++ = 0x68; /* push imm32 */
     473            *(uint32_t *)pbPatchMemPush = (uint32_t)(uAddrReturn >> 32);
     474            pbPatchMemPush   += sizeof(uint32_t);
     475
     476            *pbPatchMemPush++ = 0x68; /* push imm32 */
    473477            *(uint32_t *)pbPatchMemPush = (uint32_t)uAddrReturn;
    474             pbPatchMemPush   += sizeof(uint32_t);
    475 
    476             *pbPatchMemPush++ = 0x68; /* push imm32 */
    477             *(uint32_t *)pbPatchMemPush = (uint32_t)(uAddrReturn >> 32);
    478478            pbPatchMemPush   += sizeof(uint32_t);
    479479        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette