Bug 62371 - Wrong allocation size in cairo_cff_font_read_cid_fontdict()
Summary: Wrong allocation size in cairo_cff_font_read_cid_fontdict()
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.12.14
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-15 13:48 UTC by Marek Kasik
Modified: 2013-03-15 14:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
fix allocation of width arrays (1.21 KB, text/plain)
2013-03-15 13:48 UTC, Marek Kasik
Details

Description Marek Kasik 2013-03-15 13:48:10 UTC
Created attachment 76559 [details]
fix allocation of width arrays

font->fd_default_width and font->fd_nominal_width are allocated as arrays of ints in cairo_cff_font_read_cid_fontdict() but they are arrays of doubles.
Attached patch fixes this.

This bug causes evince to crash when printing specific PDFs. See https://bugzilla.redhat.com/show_bug.cgi?id=917431.

Marek
Comment 1 Chris Wilson 2013-03-15 14:02:25 UTC
commit c141615a7fa632a2435b49f3949ed1fc9962af1f
Author: Marek Kasik <mkasik@redhat.com>
Date:   Fri Mar 15 14:46:19 2013 +0100

    cff-subset: Fix allocation of width arrays


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.