Bug 12033

Summary: Plug possible leak of pixman_traps in _cairo_image_surface_composite_trapezoids.
Product: cairo Reporter: Martin Ejdestig <marejde>
Component: image backendAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.5.1   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch created with git-format-patch

Description Martin Ejdestig 2007-08-16 17:37:58 UTC
If width and height are 0 and pixman_traps is allocated on the heap,
it would leak. Fix by simply checking width and height prior to
allocating pixman_traps.
Comment 1 Martin Ejdestig 2007-08-16 17:39:03 UTC
Created attachment 11156 [details] [review]
Patch created with git-format-patch

Don't know if this is the way you prefer to get patches from external contributors...
Comment 2 Chris Wilson 2007-08-17 06:18:37 UTC
Pushed. Thanks.

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.