mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 01:23:56 +01:00
[ENOMEM] skip asserts in to_bias if serializer is in an error state.
This commit is contained in:
1 parent
057769b1a3
commit
6f754852c1
2 files changed
+1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user