mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 11:38:16 +02:00
Merge branch 'master' into 'master'
[cff-subset] check subrs offset is within font data See merge request cairo/cairo!657
This commit is contained in:
commit
4ca0d581cb
1 changed files with 2 additions and 0 deletions
|
|
@ -930,6 +930,8 @@ cairo_cff_font_read_private_dict (cairo_cff_font_t *font,
|
|||
if (operand) {
|
||||
decode_integer (operand, &offset);
|
||||
p = ptr + offset;
|
||||
if (unlikely (p < font->data || p > font->data_end))
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
status = cff_index_read (local_sub_index, &p, font->data_end);
|
||||
if (unlikely (status))
|
||||
return status;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue