Files
odfstudio/external/harfbuzz/ubsan.patch
T
Stephan Bergmann 2793e0e2fc Adapt external/harfbuzz/ubsan.patch
...to 3b773d5b41 "Upload HarfBuzz 1.7.4"

Change-Id: I07459c9e03a4cd68a600150964a4e5358b559766
2018-01-17 10:02:05 +01:00

12 lines
419 B
Diff

--- src/hb-ot-hmtx-table.hh
+++ src/hb-ot-hmtx-table.hh
@@ -143,7 +143,7 @@
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?!
}