<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - The xcb_key_symbols_get_keycode function returns a pointer which must be dereferenced in order to get the respective keycode."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=80369">80369</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>The xcb_key_symbols_get_keycode function returns a pointer which must be dereferenced in order to get the respective keycode.
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vilhelm.gray@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Demos
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>XCB
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=101545" name="attach_101545" title="Patch for xte.c to statisfy compilation warnings">attachment 101545</a> <a href="attachment.cgi?id=101545&action=edit" title="Patch for xte.c to statisfy compilation warnings">[details]</a></span>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>