Raise table growth limit during subsetting. Real case encountered that exceeded the current limit. Fixes #4943.

This commit is contained in:
Garret Rieger authored and Behdad Esfahbod committed 2024-11-21 18:10:21 -07:00
1 parent 773fe85018
commit 0b7beefd0b
1 file changed
+1 -1
+1 -1
View File
@@ -295,7 +295,7 @@ _try_subset (const TableType *table,
DEBUG_MSG (SUBSET, nullptr, "OT::%c%c%c%c ran out of room; reallocating to %u bytes.",
HB_UNTAG (c->table_tag), buf_size);
if (unlikely (buf_size > c->source_blob->length * 16 ||
if (unlikely (buf_size > c->source_blob->length * 256 ||
!buf->alloc (buf_size, true)))
{
DEBUG_MSG (SUBSET, nullptr, "OT::%c%c%c%c failed to reallocate %u bytes.",