Bug 30737

Summary: Return value of malloc not checked in some places.
Product: XCB Reporter: jp.sittingduck
Component: UtilsAssignee: xcb mailing list dummy <xcb>
Status: RESOLVED FIXED QA Contact: xcb mailing list dummy <xcb>
Severity: minor    
Priority: low    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Check for malloc failure in two places.

Description jp.sittingduck 2010-10-09 10:17:15 UTC
Created attachment 39311 [details] [review]
Check for malloc failure in two places.

In xcb_key_symbols_alloc and xcb_render_util_composite_text_stream, malloc is called without checking that it returned non-NULL. The pointer is then used immediately afterwards.
Comment 1 Julien Danjou 2010-10-12 02:32:36 UTC
Patch applied.

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.