Bug 30737 - Return value of malloc not checked in some places.
Summary: Return value of malloc not checked in some places.
Status: RESOLVED FIXED
Alias: None
Product: XCB
Classification: Unclassified
Component: Utils (show other bugs)
Version: unspecified
Hardware: All All
: low minor
Assignee: xcb mailing list dummy
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-09 10:17 UTC by jp.sittingduck
Modified: 2010-10-12 02:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Check for malloc failure in two places. (970 bytes, patch)
2010-10-09 10:17 UTC, jp.sittingduck
Details | Splinter Review

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.