mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 17:44:06 +01:00
[subset] Fix fuzzer crash.
https://oss-fuzz.com/testcase-detail/6608005089853440
This commit is contained in:
1 parent
ff326fbe8f
commit
f3b4d35f36
2 files changed
+5
-1
No files matched your search
+5
-1
@@ -323,6 +323,8 @@ struct hb_serialize_context_t
|
||||
{
|
||||
object_t *obj = current;
|
||||
if (unlikely (!obj)) return;
|
||||
// Allow cleanup when we've error'd out on int overflows which don't compromise
|
||||
// the serializer state.
|
||||
if (unlikely (in_error() && !only_overflow ())) return;
|
||||
|
||||
current = current->next;
|
||||
@@ -340,7 +342,9 @@ struct hb_serialize_context_t
|
||||
{
|
||||
object_t *obj = current;
|
||||
if (unlikely (!obj)) return 0;
|
||||
if (unlikely (in_error())) return 0;
|
||||
// Allow cleanup when we've error'd out on int overflows which don't compromise
|
||||
// the serializer state.
|
||||
if (unlikely (in_error() && !only_overflow ())) return 0;
|
||||
|
||||
current = current->next;
|
||||
obj->tail = head;
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user