Bug 12033 - Plug possible leak of pixman_traps in _cairo_image_surface_composite_trapezoids.
Summary: Plug possible leak of pixman_traps in _cairo_image_surface_composite_trapezoids.
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: image backend (show other bugs)
Version: 1.5.1
Hardware: Other All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-16 17:37 UTC by Martin Ejdestig
Modified: 2007-08-17 06:18 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch created with git-format-patch (1.40 KB, patch)
2007-08-16 17:39 UTC, Martin Ejdestig
Details | Splinter Review

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.