diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-07-19 19:28:55 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-07-31 18:20:05 +0200 |
commit | 1be2c6215a006fa58113ee7789c86224978fac15 (patch) | |
tree | 975887972bf3d386b6a6967e1086a80b2e00f09a /external/harfbuzz/ubsan.patch | |
parent | 9f800d2caf934c58b5845f6e235468ddfc80604f (diff) |
upgrade the internal harfbuzz to 1.8.4
Change-Id: I127cf3fa3ae00e91c73114e1a1915ea614924819
Reviewed-on: https://gerrit.libreoffice.org/57771
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit b96bbb1ff391036cbba832bc22100792880f0fe6)
Reviewed-on: https://gerrit.libreoffice.org/58329
Diffstat (limited to 'external/harfbuzz/ubsan.patch')
-rw-r--r-- | external/harfbuzz/ubsan.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/external/harfbuzz/ubsan.patch b/external/harfbuzz/ubsan.patch index c2247ef84d3e..fb299316af9d 100644 --- a/external/harfbuzz/ubsan.patch +++ b/external/harfbuzz/ubsan.patch @@ -1,11 +1,11 @@ --- src/hb-ot-hmtx-table.hh +++ src/hb-ot-hmtx-table.hh -@@ -143,7 +143,7 @@ - return default_advance; +@@ -263,7 +263,7 @@ struct hmtxvmtx + return default_advance; } -- return table->longMetric[MIN (glyph, (uint32_t) num_advances - 1)].advance -+ return static_cast<OT::LongMetric const *>(table->longMetric)[MIN (glyph, (uint32_t) num_advances - 1)].advance - + var_table->get_advance_var (glyph, font->coords, font->num_coords); // TODO Optimize?! +- return table->longMetric[MIN (glyph, (uint32_t) num_advances - 1)].advance; ++ return static_cast<OT::LongMetric const *>(table->longMetric)[MIN (glyph, (uint32_t) num_advances - 1)].advance; } + inline unsigned int get_advance (hb_codepoint_t glyph, |