mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 08:51:07 +01:00
Fix subset fuzzer timeout. (#6019)
https://oss-fuzz.com/testcase-detail/5440786836815872
This commit is contained in:
1 parent
56feae4035
commit
8647a429ce
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user