[Poppler-bugs] [Bug 35381] crashes in tilingPatternFill

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 11 03:03:55 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=35381

--- Comment #5 from M.Drochner at fz-juelich.de 2011-07-11 03:03:54 PDT ---
I've found the reason if the crashes I've seen: It was an inconsistency
of the USE_CMS definitions between libpoppler and libpoppler-glib.
In NetBSD/pkgsrc, the frontend libraries are built as separate
packages, to limit dependencies to the necessary ones, and it
was not enforced that --enable/disable-cms was set for either
all or none of the components.
The layout of the Gfx and GfxColorSpace classes depends on the USE_CMS
preprocessor symbol, and now it is also obvious why code was
affected which calls back from CairoOutputDev into Gfx.

So your code is not to blame, but wouldn't it be possible to
use some subclassing to get the nasty #ifdefs out of the
class declarations?
Also, there might be problems with programs which use libpoppler
directly (which you don't like, I know, but since xpdf allowed
it and these programs are quite high-profile ones, one has
to live with it). For those, it could help to put USE_CMS
into poppler-config.h.

best regards
Matthias



------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Besuchen Sie uns auf unserem neuen Webauftritt unter www.fz-juelich.de

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list