Summary: | Uninitialized memory leads to invalid free | ||
---|---|---|---|
Product: | cairo | Reporter: | Federico Mena-Quintero <federico> |
Component: | general | Assignee: | Chris Wilson <chris> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | ht990332, public |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | cairo-105084.patch |
Description
Federico Mena-Quintero
2018-02-13 21:05:59 UTC
Created attachment 137338 [details] [review] cairo-105084.patch I believe there's just a call missing to _get_pattern_ft_options() to initialize font_face->ft_options. It may be good to factor out the initialization of font_face from _cairo_ft_font_face_create_for_pattern() and _cairo_ft_font_face_create(), since both malloc() and must initialize each field by hand. zathura segfaults when loading a document. The patch helps indeed. Thank you. This is now commit 45e3b8f27179cf1130bfa61a09ef366fd313a0e1. |
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.