mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 21:58:04 +02:00
Merge branch 'master' into 'master'
fix SEGV in cairo_type1_font functioons See merge request cairo/cairo!497
This commit is contained in:
commit
89f272e3d9
1 changed files with 6 additions and 0 deletions
|
|
@ -1085,6 +1085,9 @@ cairo_type1_font_for_each_subr (cairo_type1_font_subset_t *font,
|
|||
|
||||
/* Skip binary data and | or NP token. */
|
||||
p = skip_token (subr_string + subr_length, cleartext_end);
|
||||
if (p == NULL)
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
while (p < cleartext_end && _cairo_isspace(*p))
|
||||
p++;
|
||||
|
||||
|
|
@ -1248,6 +1251,9 @@ cairo_type1_font_subset_for_each_glyph (cairo_type1_font_subset_t *font,
|
|||
|
||||
/* Skip binary data and |- or ND token. */
|
||||
p = skip_token (charstring + charstring_length, dict_end);
|
||||
if (p == NULL)
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
while (p < dict_end && _cairo_isspace(*p))
|
||||
p++;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue