- for (uint32_t i = 0; i < mhp->ncmds; i++) {
- if (sgp->cmd == LC_SEGMENT_64) {
- if (strncmp(sgp->segname, SEG_TEXT, sizeof(sgp->segname)) == 0) {
- return ((uintptr_t)addr >= (sgp->vmaddr) && (uintptr_t)addr < (sgp->vmaddr + sgp->vmsize));
- }
- }
- sgp = (const struct segment_command_64 *)(const void *)((const char *)sgp + sgp->cmdsize);
- }
+ for (uint32_t i = 0; i < mhp->ncmds; i++) {
+ if (sgp->cmd == LC_SEGMENT_64) {
+ if (strncmp(sgp->segname, SEG_TEXT, sizeof(sgp->segname)) == 0) {
+ return (uintptr_t)addr >= (sgp->vmaddr) && (uintptr_t)addr < (sgp->vmaddr + sgp->vmsize);
+ }
+ }
+ sgp = (const struct segment_command_64 *)(const void *)((const char *)sgp + sgp->cmdsize);
+ }