mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 18:50:14 +01:00
Fix buffer size check in TrueType subsetting
Andrew Cowie reported a problem with the Charis SIL font being embedded as a fallback font. The buffer size check for composite glyphs was incorrect causing the subsetting to fail for some fonts.
This commit is contained in:
parent
ba2ec8e1d9
commit
9b496af5c2
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ cairo_truetype_font_remap_composite_glyph (cairo_truetype_font_t *font,
|
|||
|
||||
composite_glyph = &glyph_data->glyph;
|
||||
do {
|
||||
if ((unsigned char *)(&composite_glyph->args[1]) >= end)
|
||||
if ((unsigned char *)(&composite_glyph->args[0]) >= end)
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
flags = be16_to_cpu (composite_glyph->flags);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue