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

This commit is contained in:
Garret Rieger authored and ebraminio committed 2020-08-12 11:25:30 +04:30
1 parent 057769b1a3
commit 6f754852c1
2 files changed
+1

No files matched your search

+1
View File
@@ -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);