Home
last modified time | relevance | path

Searched refs:SAFE_FIXED_SIZE (Results 1 – 2 of 2) sorted by relevance

/external/skqp/third_party/skcms/
Dskcms.cc30 #define SAFE_FIXED_SIZE(type) ((uint64_t)offsetof(type, variable)) macro
269 if (size < SAFE_FIXED_SIZE(para_Layout)) { in read_curve_para()
282 if (size < SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]) { in read_curve_para()
287 *curve_size = SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]; in read_curve_para()
345 if (size < SAFE_FIXED_SIZE(curv_Layout)) { in read_curve_curv()
352 if (size < SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t)) { in read_curve_curv()
357 *curve_size = SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t); in read_curve_curv()
512 if (tag->size < SAFE_FIXED_SIZE(mft1_Layout)) { in read_tag_mft1()
524 return init_a2b_tables(mftTag->variable, tag->size - SAFE_FIXED_SIZE(mft1_Layout), 1, in read_tag_mft1()
529 if (tag->size < SAFE_FIXED_SIZE(mft2_Layout)) { in read_tag_mft2()
[all …]
/external/skia/third_party/skcms/
Dskcms.cc48 #define SAFE_FIXED_SIZE(type) ((uint64_t)offsetof(type, variable)) macro
445 if (size < SAFE_FIXED_SIZE(para_Layout)) { in read_curve_para()
458 if (size < SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]) { in read_curve_para()
463 *curve_size = SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]; in read_curve_para()
521 if (size < SAFE_FIXED_SIZE(curv_Layout)) { in read_curve_curv()
528 if (size < SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t)) { in read_curve_curv()
533 *curve_size = SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t); in read_curve_curv()
714 if (tag->size < SAFE_FIXED_SIZE(mft1_Layout)) { in read_tag_mft1()
726 return init_tables(mftTag->variable, tag->size - SAFE_FIXED_SIZE(mft1_Layout), 1, in read_tag_mft1()
732 if (tag->size < SAFE_FIXED_SIZE(mft2_Layout)) { in read_tag_mft2()
[all …]