mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 04:08:13 +02:00
cff-subset: Do not use garbage values
The code incorrectly initialized the fields of the data structure, which are about to be overwritten, instead of the temporary variables which are used to compute them.
This commit is contained in:
parent
ad3ef3a8fb
commit
93c8b1090b
1 changed files with 4 additions and 4 deletions
|
|
@ -1078,10 +1078,10 @@ cairo_cff_font_read_font_metrics (cairo_cff_font_t *font, cairo_hash_table_t *t
|
|||
double x_min, y_min, x_max, y_max;
|
||||
double xx, yx, xy, yy;
|
||||
|
||||
font->x_min = 0.0;
|
||||
font->y_min = 0.0;
|
||||
font->x_max = 0.0;
|
||||
font->y_max = 0.0;
|
||||
x_min = 0.0;
|
||||
y_min = 0.0;
|
||||
x_max = 0.0;
|
||||
y_max = 0.0;
|
||||
p = cff_dict_get_operands (font->top_dict, FONTBBOX_OP, &size);
|
||||
if (p) {
|
||||
end = p + size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue