Bug 80369 - The xcb_key_symbols_get_keycode function returns a pointer which must be dereferenced in order to get the respective keycode.
Summary: The xcb_key_symbols_get_keycode function returns a pointer which must be dere...
Status: RESOLVED WONTFIX
Alias: None
Product: XCB
Classification: Unclassified
Component: Demos (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xcb mailing list dummy
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-22 23:52 UTC by William Breathitt Gray
Modified: 2019-02-16 19:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch for xte.c to statisfy compilation warnings (2.29 KB, text/plain)
2014-06-22 23:52 UTC, William Breathitt Gray
Details

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.