Bug 62371

Summary: Wrong allocation size in cairo_cff_font_read_cid_fontdict()
Product: cairo Reporter: Marek Kasik <mkasik>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.12.14   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: fix allocation of width arrays

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.