[ArrayOf] Remove fast-path for offset to max-sized objects

Fixes timeout https://oss-fuzz.com/testcase-detail/6153196517851136
pull/4345/head
Behdad Esfahbod 1 year ago
parent 9ffea6328e
commit e322949b9b
  1. 10
      src/hb-open-type.hh

@ -718,10 +718,16 @@ struct ArrayOf
return_trace (out);
}
/* Special-case ArrayOf Offset16To structs with a maximum size. */
/* Special-case ArrayOf Offset16To structs with a maximum size.
*
* Currently disabled, because this throws off max_op accounting
* and can cause timeouts in further operations.
* https://oss-fuzz.com/testcase-detail/6153196517851136
*/
template <typename T = Type,
typename Base = void,
hb_enable_if (hb_has_max_size (typename T::target_t) &&
hb_enable_if (false &&
hb_has_max_size (typename T::target_t) &&
sizeof (T) == 2)>
HB_ALWAYS_INLINE
bool sanitize (hb_sanitize_context_t *c, const Base *base) const

Loading…
Cancel
Save