mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 08:21:32 +01:00
[VARC] Check for an OOM
Otherwise we can infinitely recurse. Fixes https://oss-fuzz.com/testcase-detail/6221534946459648
This commit is contained in:
1 parent
9f8f81403d
commit
88e9cd3fd3
1 file changed
+1
-1
@@ -124,7 +124,7 @@ struct VARC
|
||||
return true;
|
||||
(*edges_left)--;
|
||||
|
||||
if (visited->has (glyph))
|
||||
if (visited->has (glyph) || visited->in_error ())
|
||||
return true;
|
||||
visited->add (glyph);
|
||||
|
||||
|
||||
Reference in new issue
Block a user