[cairo-bugs] [Bug 73012] New: Improve thread safety of Cairo Font on Windows

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 24 01:25:37 PST 2013


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

          Priority: medium
            Bug ID: 73012
          Assignee: cairo-bugs at cairographics.org
           Summary: Improve thread safety of Cairo Font on Windows
        QA Contact: cairo-bugs at cairographics.org
          Severity: normal
    Classification: Unclassified
                OS: Windows (All)
          Reporter: fanc999 at yahoo.com.tw
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: win32 backend
           Product: cairo

Hi,

In its current state, the HDC in cairo-win32-font.c is a static variable that
can be compromised if multiple threads are attempting to create HDC's for
Windows to render the fonts, making this code thread-unsafe.  This also makes
PangoCairo (which also relies on this code) unable to run in a thread-safe
manner, which I am also trying to investigate and fix[1].

This bug attempts to track my try, based on someone else's patch, to tackle
this issue.

[1]:https://bugzilla.gnome.org/show_bug.cgi?id=695913

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20131224/fc6064ba/attachment.html>


More information about the cairo-bugs mailing list