- Timestamp:
- Dec 4, 2013 9:57:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdrModMachO.c
r64 r65 783 783 KLDRMODMACHO_CHECK_RETURN(pSect->addr - pSrcSeg->vmaddr <= pSrcSeg->vmsize, \ 784 784 KLDR_ERR_MACHO_BAD_SECTION); \ 785 KLDRMODMACHO_CHECK_RETURN(pSect->addr - pSrcSeg->vmaddr + pSect->size <= pSrcSeg->vmsize, \ 785 KLDRMODMACHO_CHECK_RETURN( pSect->addr - pSrcSeg->vmaddr + pSect->size <= pSrcSeg->vmsize \ 786 || !kHlpStrComp(pSrcSeg->segname, "__CTF") /* see above */, \ 786 787 KLDR_ERR_MACHO_BAD_SECTION); \ 787 788 KLDRMODMACHO_CHECK_RETURN(pSect->align < 31, \ … … 1207 1208 if ( pModMachO->uEffFileType != MH_OBJECT \ 1208 1209 && (cSectionsLeft == 0 || !(pFirstSect->flags & S_ATTR_DEBUG)) \ 1209 && kHlpStrComp(pSrcSeg->segname, "__DWARF") ) \ 1210 && kHlpStrComp(pSrcSeg->segname, "__DWARF") \ 1211 && kHlpStrComp(pSrcSeg->segname, "__CTF") ) \ 1210 1212 { \ 1211 1213 NEW_SEGMENT(a_cBits, pSrcSeg->segname, K_FALSE /*a_fObjFile*/, 0 /*a_achName2*/, \ … … 1224 1226 if ( pModMachO->uEffFileType == MH_OBJECT \ 1225 1227 && !(pSect->flags & S_ATTR_DEBUG) \ 1226 && kHlpStrComp(pSrcSeg->segname, "__DWARF") ) \ 1228 && kHlpStrComp(pSrcSeg->segname, "__DWARF") \ 1229 && kHlpStrComp(pSrcSeg->segname, "__CTF") ) \ 1227 1230 { \ 1228 1231 kHlpAssert(!fAddSegOuter); \
Note:
See TracChangeset
for help on using the changeset viewer.