VirtualBox

Changeset 85339 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jul 14, 2020 1:29:53 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139319
Message:

iprt/formats/mach-o.h,ldrMachO.cpp: New segment flag SG_READ_ONLY added in 10.14. Harmless. bugref:9790

File:
1 edited

Legend:

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

    r83084 r85339  
    102102#endif
    103103
     104/** @def RTLDRMODMACHO_CHECK_MSG_RETURN
     105 * Checks that an expression is true and return if it isn't.
     106 * This is a debug aid.
     107 */
     108#ifdef RTLDRMODMACHO_STRICT2
     109# define RTLDRMODMACHO_CHECK_MSG_RETURN(expr, msgargs, rc)  AssertMsgReturn(expr, msgargs, rc)
     110#else
     111# define RTLDRMODMACHO_CHECK_MSG_RETURN(expr, msgargs, rc)  do { if (RT_LIKELY(expr)) {/* likely */ } else return (rc); } while (0)
     112#endif
     113
    104114/** @def RTLDRMODMACHO_CHECK_RETURN
    105115 * Checks that an expression is true and return if it isn't.
     
    710720                RTLDRMODMACHO_CHECK_RETURN(!(~pSrcSeg->maxprot & pSrcSeg->initprot), \
    711721                                          VERR_LDRMACHO_BAD_LOAD_COMMAND); \
    712                 RTLDRMODMACHO_CHECK_RETURN(!(pSrcSeg->flags & ~(SG_HIGHVM | SG_FVMLIB | SG_NORELOC | SG_PROTECTED_VERSION_1)), \
    713                                           VERR_LDRMACHO_BAD_LOAD_COMMAND); \
     722                RTLDRMODMACHO_CHECK_MSG_RETURN(!(pSrcSeg->flags & ~(SG_HIGHVM | SG_FVMLIB | SG_NORELOC | SG_PROTECTED_VERSION_1 | SG_READ_ONLY)), \
     723                                               ("flags=%#x %s\n", pSrcSeg->flags, pSrcSeg->segname), \
     724                                               VERR_LDRMACHO_BAD_LOAD_COMMAND); \
    714725                RTLDRMODMACHO_CHECK_RETURN(   pSrcSeg->nsects * sizeof(section_##a_cBits##_t) \
    715726                                          <= u.pLoadCmd->cmdsize - sizeof(segment_command_##a_cBits##_t), \
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