Fix subset fuzzer timeout. (#6019)

https://oss-fuzz.com/testcase-detail/5440786836815872
This commit is contained in:
Garret Rieger authored and GitHub committed 2026-06-04 04:37:23 -06:00
1 parent 56feae4035
commit 8647a429ce
1 file changed
+5
+5
View File
@@ -68,6 +68,11 @@ read_ranges (const uint8_t *&p,
if (finish < start)
return false;
if (finish - start > 5000) {
// Prevent fuzzer timeouts by rejecting large ranges.
return false;
}
if (is_add)
hb_set_add_range (set, start, finish);
else