[ENOMEM] skip asserts in to_bias if serializer is in an error state.

pull/2462/merge
Garret Rieger 4 years ago committed by ebraminio
parent 057769b1a3
commit 6f754852c1
  1. 1
      src/hb-serialize.hh
  2. BIN
      test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-5927551890096128

@ -332,6 +332,7 @@ struct hb_serialize_context_t
unsigned to_bias (const void *base) const
{
if (unlikely (in_error ())) return 0;
if (!base) return 0;
assert (current);
assert (current->head <= (const char *) base);

Loading…
Cancel
Save