[subset] fix fuzzer timeout if visisted_paint goes into error.

This commit is contained in:
Garret Rieger authored and Behdad Esfahbod committed 2022-01-13 11:08:24 -08:00
1 parent 4ced2e8a8a
commit 87496bf63e
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ struct hb_colrv1_closure_context_t :
bool paint_visited (const void *paint)
{
hb_codepoint_t delta = (hb_codepoint_t) ((uintptr_t) paint - (uintptr_t) base);
if (visited_paint.has (delta))
if (visited_paint.in_error() || visited_paint.has (delta))
return true;
visited_paint.add (delta);