src/hb-ot-post-table.hh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
New commits: commit 923a8f520addba095384b975ba8934e5a18fb696 Author: Behdad Esfahbod <beh...@behdad.org> Date: Sun Oct 29 15:00:54 2017 -0600 Fix up 5de83fab947e23cc729d69f8d44a28311298af9d diff --git a/src/hb-ot-post-table.hh b/src/hb-ot-post-table.hh index 4213093b..273a6d02 100644 --- a/src/hb-ot-post-table.hh +++ b/src/hb-ot-post-table.hh @@ -96,7 +96,7 @@ struct post pool = &StructAfter<uint8_t> (v2.glyphNameIndex); const uint8_t *end = (uint8_t *) table + post_len; - for (const uint8_t *data = pool; data < end && data + *data <= end; data += *data) + for (const uint8_t *data = pool; data < end && data + *data <= end; data += 1 + *data) { uint32_t *offset = index_to_offset.push (); if (unlikely (!offset)) commit b98c7c3f1fc8581ce9a0f40ae25aee5e1b2b3106 Author: Behdad Esfahbod <beh...@behdad.org> Date: Sun Oct 29 14:52:52 2017 -0600 [post] Minor diff --git a/src/hb-ot-post-table.hh b/src/hb-ot-post-table.hh index 472e5f7a..4213093b 100644 --- a/src/hb-ot-post-table.hh +++ b/src/hb-ot-post-table.hh @@ -130,9 +130,6 @@ struct post if (glyph >= glyphNameIndex->len) return false; - if (!buf_len) - return true; - unsigned int index = glyphNameIndex->array[glyph]; if (index < NUM_FORMAT1_NAMES) { @@ -146,8 +143,7 @@ struct post if (index >= index_to_offset.len) return false; - unsigned int offset = index_to_offset[index]; - + unsigned int offset = index_to_offset.array[index]; const uint8_t *data = pool + offset; unsigned int name_length = *data; _______________________________________________ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz