Closed Bug 349837 Opened 18 years ago Closed 18 years ago

cairo crash [@ _cairo_clip_init_deep_copy()]

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: alex, Assigned: vlad)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

I'm experiencing a crash in _cairo_clip_init_deep_copy() in a xulrunner app that draws SVG onto a custom widget. I don't have a simple testcase unfortunately.

The problem is that _cairo_clip_init_deep_copy() tries to copy the wrong surface (clip->surface is null):

Index: cairo-clip.c
===================================================================
--- cairo-clip.c        (revision 13297)
+++ cairo-clip.c        (working copy)
@@ -525,7 +525,7 @@
         }

         if (other->surface) {
-            _cairo_surface_clone_similar (target, clip->surface, &clip->surface);
+            _cairo_surface_clone_similar (target, other->surface, &clip->surface);
             clip->surface_rect = other->surface_rect;
         }
Hrm... maybe this should be filed upstream?
Severity: normal → critical
Keywords: crash
Summary: cairo crash in _cairo_clip_init_deep_copy() → cairo crash [@ _cairo_clip_init_deep_copy()]
please file this upstream. bugzilla.freedesktop.org
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Er, no idea why this was closed as invalid, because it's still a valid crash.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Attached patch cairo crash fixSplinter Review
Patch from upstream-ish; we'll take this as a band-aid before we upgrade our cairo to the trunk.
Assignee: nobody → vladimir
Status: REOPENED → ASSIGNED
Attachment #245297 - Flags: review+
*** Bug 357254 has been marked as a duplicate of this bug. ***
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Crash Signature: [@ _cairo_clip_init_deep_copy()]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: