VirtualBox

Ignore:
Timestamp:
Oct 16, 2018 12:49:25 AM (6 years ago)
Author:
vboxsync
Message:

IPRT/ldr: Must check that JmpStubsRVA isn't NIL and not use it blindly now that everything isn't MH_OBJECT. Return VERR_LDR_ADDRESS_OVERFLOW if nil. bugref:9232

File:
1 edited

Legend:

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

    r74844 r74856  
    36363636                                       + UINT64_C(0x80000000)
    36373637                                    >= UINT64_C(0xffffff20))
     3638                            {
     3639                                RTLDRMODMACHO_CHECK_RETURN(pThis->JmpStubsRVA != NIL_RTLDRADDR, VERR_LDR_ADDRESS_OVERFLOW);
    36383640                                SymAddr += pThis->cbJmpStub * Fixup.r.r_symbolnum + pThis->JmpStubsRVA + NewBaseAddress;
     3641                            }
    36393642                            else
    36403643                                SymAddr += pSym->n_value;
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