Commit 2946baf4 authored by Heiko Lewin's avatar Heiko Lewin

Try to fix out-of-bounds read

parent 974791b4
Pipeline #256752 passed with stages
in 20 minutes and 27 seconds
......@@ -5796,7 +5796,7 @@ _cairo_pdf_surface_emit_type1_font (cairo_pdf_surface_t *surface,
if (glyph > 0) {
_cairo_output_stream_printf (surface->output,
" %ld",
(long)(subset->widths[glyph]*PDF_UNITS_PER_EM));
(long)(subset->widths[glyph - 1]*PDF_UNITS_PER_EM));
} else {
_cairo_output_stream_printf (surface->output, " 0");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment