Searched refs:fat_header (Results 1 – 7 of 7) sorted by relevance
172 const struct fat_header* fh_be = buf; in is_macho_object_file()176 if (szB < sizeof(struct fat_header)) in is_macho_object_file()244 { struct fat_header* fh_be; in map_image_aboard()245 struct fat_header fh; in map_image_aboard()254 if (ii->img_szB < sizeof(struct fat_header)) in map_image_aboard()258 fh_be = (struct fat_header *)ii->img; in map_image_aboard()266 if (ii->img_szB < sizeof(struct fat_header) in map_image_aboard()300 assert(ii->img_szB >= sizeof(struct fat_header)); in map_image_aboard()
129 static int fat_has_cputype(struct fat_header *fh, cpu_type_t cputype) in fat_has_cputype()170 struct fat_header *fh = (struct fat_header *)buf; in select_arch()
121 const struct fat_header* fh_be = buf; in ML_()125 if (szB < sizeof(struct fat_header)) in ML_()196 { struct fat_header* fh_be; in map_image_aboard()197 struct fat_header fh; in map_image_aboard()206 if (ii->img_szB < sizeof(struct fat_header)) { in map_image_aboard()212 fh_be = (struct fat_header *)ii->img; in map_image_aboard()220 if (ii->img_szB < sizeof(struct fat_header) in map_image_aboard()264 vg_assert(ii->img_szB >= sizeof(struct fat_header)); in map_image_aboard()
406 …COMPILE_ASSERT(sizeof(struct fat_header) % sizeof(uint32_t) == 0, struct_fat_header_must_be_integr…407 …archs = reinterpret_cast<struct fat_arch*>(rawData.data() + sizeof(struct fat_header) / sizeof(uin…408 numArchs = reinterpret_cast<struct fat_header*>(rawData.data())->nfat_arch;410 unsigned maxArchs = (sizeInBytes - sizeof(struct fat_header)) / sizeof(struct fat_arch);
626 struct fat_header { struct
625 struct fat_header fh; in load_fat_file()
218 … archs = (struct fat_arch*)((uint8_t*)rawData.data() + sizeof(struct fat_header));224 Removed cast to (uint8_t*) and divide sizeof(struct fat_header)3344 The regression was caused by an incorrectly adding sizeof(struct fat_header)