Changeset 53
- Timestamp:
- Jul 9, 2013, 7:18:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdrModMachO.c
r52 r53 599 599 || (KU64)u.pSeg32->fileoff + u.pSeg32->filesize > cbFile)) 600 600 return KLDR_ERR_MACHO_BAD_LOAD_COMMAND; 601 if (!u.pSeg32->filesize && u.pSeg32->fileoff)602 return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;603 601 if (u.pSeg32->vmsize < u.pSeg32->filesize) 604 602 return KLDR_ERR_MACHO_BAD_LOAD_COMMAND; … … 668 666 return KLDR_ERR_MACHO_BAD_SECTION; 669 667 *pfCanLoad = K_FALSE; 670 fFileBits = 0;668 fFileBits = -1; /* __DATA.__got in the 64-bit mach_kernel has bits, any things without bits? */ 671 669 break; 672 670 … … 796 794 || u.pSeg64->fileoff + u.pSeg64->filesize > cbFile)) 797 795 return KLDR_ERR_MACHO_BAD_LOAD_COMMAND; 798 if (!u.pSeg64->filesize && u.pSeg64->fileoff)799 return KLDR_ERR_MACHO_BAD_LOAD_COMMAND;800 796 if (u.pSeg64->vmsize < u.pSeg64->filesize) 801 797 return KLDR_ERR_MACHO_BAD_LOAD_COMMAND; … … 865 861 return KLDR_ERR_MACHO_BAD_SECTION; 866 862 *pfCanLoad = K_FALSE; 867 fFileBits = 0;863 fFileBits = -1; /* __DATA.__got in the 64-bit mach_kernel has bits, any things without bits? */ 868 864 break; 869 865
Note:
See TracChangeset
for help on using the changeset viewer.