[Xcb] [Bug 80369] New: The xcb_key_symbols_get_keycode function returns a pointer which must be dereferenced in order to get the respective keycode.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Jun 22 16:52:28 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=80369
Priority: medium
Bug ID: 80369
Assignee: xcb at lists.freedesktop.org
Summary: The xcb_key_symbols_get_keycode function returns a
pointer which must be dereferenced in order to get the
respective keycode.
QA Contact: xcb at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: vilhelm.gray at gmail.com
Hardware: Other
Status: NEW
Version: unspecified
Component: Demos
Product: XCB
Created attachment 101545
--> https://bugs.freedesktop.org/attachment.cgi?id=101545&action=edit
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20140622/c732c43c/attachment.html>
More information about the Xcb
mailing list