Home | History | Annotate | Download | only in m_debuginfo

Lines Matching defs:sli

132 static void unmap_image ( /*MOD*/DiSlice* sli )
134 vg_assert(sli);
135 if (ML_(sli_is_valid)(*sli)) {
136 ML_(img_done)(sli->img);
137 *sli = DiSlice_INVALID;
150 DiSlice sli = DiSlice_INVALID;
169 // |sli.img|, so NULL out |mimg| after this point, for the sake of
171 sli = ML_(sli_from_img)(mimg);
175 if (ML_(img_size)(sli.img) < sizeof(struct fat_header)) {
181 ML_(img_get)(&fh_be, sli.img, fh_be_ioff, sizeof(fh_be));
187 if (ML_(img_size)(sli.img) < sizeof(struct fat_header)
212 ML_(img_get)(&arch_be, sli.img, arch_be_ioff, sizeof(arch_be));
219 if (ML_(img_size)(sli.img) < arch.offset + arch.size) {
224 sli.ioff = arch.offset;
225 sli.szB = arch.size;
239 vg_assert(ML_(img_size)(sli.img) >= sizeof(struct fat_header));
241 if (sli.szB < sizeof(struct MACH_HEADER)) {
246 if (sli.szB > ML_(img_size)(sli.img)) {
251 if (sli.ioff >= 0 && sli.ioff + sli.szB <= ML_(img_size)(sli.img)) {
262 ML_(cur_read_get)(&mh, ML_(cur_from_sli)(sli), sizeof(mh));
268 if (sli.szB < sizeof(struct MACH_HEADER) + mh.sizeofcmds) {
274 vg_assert(sli.img);
275 vg_assert(ML_(img_size)(sli.img) > 0);
277 vg_assert(sli.ioff >= 0);
278 vg_assert(sli.szB > 0);
279 vg_assert(sli.ioff + sli.szB <= ML_(img_size)(sli.img));
280 return sli; /* success */
284 unmap_image(&sli);
637 /* Brute force just simply search for uuid[0..15] in |sli| */
638 static Bool check_uuid_matches ( DiSlice sli, UChar* uuid )
640 if (sli.szB < 16)
645 DiOffT min_off = sli.ioff;
646 DiOffT max1_off = sli.ioff + sli.szB;
656 SizeT nGot = ML_(img_get_some)(buf, sli.img, curr_off, avail);
667 ML_(img_get)(&buff16[0], sli.img, curr_off + i, 16);