Bug 80369

Summary: The xcb_key_symbols_get_keycode function returns a pointer which must be dereferenced in order to get the respective keycode.
Product: XCB Reporter: William Breathitt Gray <vilhelm.gray>
Component: DemosAssignee: xcb mailing list dummy <xcb>
Status: RESOLVED WONTFIX QA Contact: xcb mailing list dummy <xcb>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch for xte.c to statisfy compilation warnings

Description William Breathitt Gray 2014-06-22 23:52:28 UTC
Created attachment 101545 [details]
Patch for xte.c to statisfy compilation warnings

In several instances, the pointer returned by the xcb_key_symbols_get_keycode function is not dereferenced, but rather used directly as the keycode value. I have attached a quick fix dereferencing the few cases I discovered. I suspect that there remain memory leaks related to these calls, since it appears the pointers were treated as keycode values rather than instances of allocated memory -- and thus there may have been no attempt to free the respective memory.
Comment 1 Daniel Stone 2019-02-16 19:43:07 UTC
The demo is now archived, and is unlikely to see any further changes.

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.