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

This commit is contained in:
Garret Rieger 2022-01-13 11:03:45 -08:00 committed by Behdad Esfahbod
parent 4ced2e8a8a
commit 87496bf63e
2 changed files with 1 additions and 1 deletions

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);