[cairo] Segfault with PS surface

Adrian Johnson ajohnson at redneon.com
Tue May 15 03:45:57 PDT 2007

Torsten Schoenfeld wrote:
> Aloha,
> the attached test case results in a segfault here with cairo from git.
> The first fix was easy enough; attached.  Unfortunately, that wasn't
> enough.  I get a new crash now:

The cause of this bug is that cairo_surface_finish() does not set the
surface->finished flag to TRUE if the backend->finish() function returns
an error status. This results in the backend->finish() function being
called twice. Attached is the patch to fix this.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Ensure-surface-backend-finish-is-never-called-more-than-once.txt
Url: http://cairographics.org/archives/cairo/attachments/20070515/99011a14/attachment.txt 

More information about the cairo mailing list