From b17e1a40885245df690a14c7528939b3881e1fe4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 28 Mar 2018 10:44:52 -0700 Subject: [PATCH] [uniscribe] Fix assertion fail in checksum calc Program: Z:\Users\ebrahim\Desktop\harfbuzz\winbuild\util\.libs\hb-shape.exe File: ../../src/hb-open-type-private.hh, Line 769 Expression: 0 == (Length & 3) abnormal program termination --- src/hb-uniscribe.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc index cd25769..f027222 100644 --- a/src/hb-uniscribe.cc +++ b/src/hb-uniscribe.cc @@ -410,7 +410,7 @@ _hb_rename_font (hb_blob_t *blob, wchar_t *new_name) if (face.find_table_index (HB_OT_TAG_name, &index)) { OT::TableRecord &record = const_cast (face.get_table (index)); - record.checkSum.set_for_data (&name, name_table_length); + record.checkSum.set_for_data (&name, new_length); record.offset.set (name_table_offset); record.length.set (name_table_length); } -- 2.7.4