[subset] Remove subset table size assertion

As https://github.com/harfbuzz/harfbuzz/pull/1930#issuecomment-525036802
This commit is contained in:
Ebrahim Byagowi 2019-08-27 02:44:26 +04:30 committed by GitHub
parent a0b4ac4dce
commit 88e9db19d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -92,7 +92,6 @@ _subset2 (hb_subset_plan_t *plan)
bool needed = table->subset (&c);
if (serializer.ran_out_of_room)
{
assert (buf_size <= (source_blob->length + plan->num_output_glyphs ()) * 16 + 4096);
buf_size += (buf_size >> 1) + 32;
DEBUG_MSG(SUBSET, nullptr, "OT::%c%c%c%c ran out of room; reallocating to %u bytes.", HB_UNTAG (tag), buf_size);
if (unlikely (!buf.alloc (buf_size)))