Lines Matching refs:end
26 size_t end = 0; in shdr_alloc_and_copy() local
28 if (ADD_OVERFLOW(offs, sizeof(struct shdr), &end) || end > img_size) in shdr_alloc_and_copy()
32 if (!shdr_size || ADD_OVERFLOW(offs, shdr_size, &end) || end > img_size) in shdr_alloc_and_copy()
184 size_t end = 0; in check_attrs() local
187 if (MUL_OVERFLOW(subkey->attr_count, sizeof(*attrs), &end) || in check_attrs()
188 ADD_OVERFLOW(end, sizeof(*subkey), &end) || in check_attrs()
189 end > img_size) in check_attrs()
193 if (ADD_OVERFLOW(attrs[n].offs, attrs[n].size, &end) || in check_attrs()
194 end > img_size) in check_attrs()
271 size_t end = 0; in shdr_load_pub_key() local
279 if (ADD_OVERFLOW(shdr->img_size, offs, &end) || end > ns_img_size) in shdr_load_pub_key()
319 if (ADD_OVERFLOW(key->name_size, offs + shdr->img_size, &end) || in shdr_load_pub_key()
320 end > ns_img_size) { in shdr_load_pub_key()