Bug 13321

Summary: segfault in FcConfigSubstituteWithPat
Product: fontconfig Reporter: Soren Harward <stharward>
Component: libraryAssignee: Keith Packard <keithp>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: major    
Priority: medium CC: gpvos+fdt
Version: 2.4   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 14062    

Description Soren Harward 2007-11-20 11:23:03 UTC
Poppler (the PDF library) causes libfontconfig to segfault in the FcConfigSubstituteWithPat function when I load certain PDFs that use non-embedded fonts.  I will attach a PDF that causes the problem.  Poppler itself is probably also at fault (and I will file a downstream bug, and add it to the notes here), but libfontconfig shouldn't segfault even if there's bad input.
Comment 1 Soren Harward 2007-11-20 11:31:07 UTC
Downstream bug (in Poppler) reported as bug number 13322 (https://bugs.freedesktop.org/show_bug.cgi?id=13322)
Comment 2 Gerben Vos 2007-11-22 12:32:22 UTC
New stack backtrace posted to the Poppler bug listed above.
Comment 3 Keith Packard 2008-01-13 17:03:38 UTC
Could you please attach the problematic PDF file?
Comment 4 Gerben Vos 2008-01-14 02:47:39 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=13322 and http://bugs.gentoo.org/show_bug.cgi?id=199827 contain PDFs that reproduce this problem. Note that the issue seems to be Gentoo-specific and has been fixed (or rather, worked around) there.
Comment 5 Keith Packard 2008-05-03 19:29:12 UTC
The Gentoo bug makes it seem like this was an xpdf issue.

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.