Lines Matching refs:SAFE_SIZEOF
42 #define SAFE_SIZEOF(x) ((uint64_t)sizeof(x)) macro
351 return (const tag_Layout*)(profile->buffer + SAFE_SIZEOF(header_Layout)); in get_tag_table()
368 if (tag.type != skcms_Signature_sf32 || tag.size < SAFE_SIZEOF(sf32_Layout)) { in skcms_GetCHAD()
392 if (tag->type != skcms_Signature_XYZ || tag->size < SAFE_SIZEOF(XYZ_Layout)) { in read_tag_xyz()
504 if (size < SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t)) { in read_curve_curv()
509 *curve_size = SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t); in read_curve_curv()
751 if (tag->size < SAFE_SIZEOF(mAB_Layout)) { in read_tag_mab()
797 if (tag->size < matrix_offset + 12 * SAFE_SIZEOF(uint32_t)) { in read_tag_mab()
1008 assert(SAFE_SIZEOF(header_Layout) == 132); in skcms_Parse()
1013 memset(profile, 0, SAFE_SIZEOF(*profile)); in skcms_Parse()
1015 if (len < SAFE_SIZEOF(header_Layout)) { in skcms_Parse()
1034 uint64_t tag_table_size = profile->tag_count * SAFE_SIZEOF(tag_Layout); in skcms_Parse()
1037 profile->size < SAFE_SIZEOF(header_Layout) + tag_table_size || in skcms_Parse()