diff options
Diffstat (limited to 'external')
-rw-r--r-- | external/harfbuzz/ubsan.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/external/harfbuzz/ubsan.patch b/external/harfbuzz/ubsan.patch index 1375c9d71f95..8fa6abe373cf 100644 --- a/external/harfbuzz/ubsan.patch +++ b/external/harfbuzz/ubsan.patch @@ -1,3 +1,14 @@ +--- src/hb-ot-font.cc ++++ src/hb-ot-font.cc +@@ -125,7 +125,7 @@ + if (glyph >= this->num_advances) + glyph = this->num_advances - 1; + +- return this->table->longMetric[glyph].advance; ++ return static_cast<OT::LongMetric const *>(this->table->longMetric)[glyph].advance; + } + }; + --- src/hb-ot-map-private.hh +++ src/hb-ot-map-private.hh @@ -52,8 +52,11 @@ |