<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/dix/devices.c, branch 3.6.x</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://openid.arctica-project.org/nx-libs/atom?h=3.6.x</id>
<link rel='self' href='https://openid.arctica-project.org/nx-libs/atom?h=3.6.x'/>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/'/>
<updated>2020-01-05T23:18:44+00:00</updated>
<entry>
<title>xkbsrv.h: move extern XkbFreePrivates to central include file</title>
<updated>2020-01-05T23:18:44+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-12-03T18:02:42+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=e9ee5a00712ae8c64bd9f68e885fc9e1d4af1540'/>
<id>urn:sha1:e9ee5a00712ae8c64bd9f68e885fc9e1d4af1540</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rework xkb device private handling</title>
<updated>2019-06-22T14:05:48+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-22T14:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=3aabc92cf81f20b89dc49e8db3c56ad9fa08481b'/>
<id>urn:sha1:3aabc92cf81f20b89dc49e8db3c56ad9fa08481b</id>
<content type='text'>
We can only free the xkbDevicePrivate because we do not know the
details of any other (possible) extension. So let's limit to that one
private for now and call the new xkbFreePrivates from dix (where such
a function is completely missing).
</content>
</entry>
<entry>
<title>CloseDevice: call XkbRemoveResourceClient before freeing key class struct</title>
<updated>2019-06-18T22:49:57+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-17T16:15:05+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=ca741177e8a36f0eb5e84a047681bfd2edd3e3ba'/>
<id>urn:sha1:ca741177e8a36f0eb5e84a047681bfd2edd3e3ba</id>
<content type='text'>
This patch is not necessary at the current code level. But when xkb
code introduced the dev-&gt;key check Xorg upstream missed that. So we
backport it now to skip that trap when updating xkb code.

  Author: Alan Coopersmith &lt;alan.coopersmith@sun.com&gt;
  Date:   Mon Jan 4 18:21:54 2010 -0800

    CloseDevice: call XkbRemoveResourceClient before freeing key class struct

    XkbRemoveResourceClient() returns immediately if dev-&gt;key is NULL.
    CloseDevice calls XkbRemoveResourceClient until it removes all resources.

    If we free dev-&gt;key and NULL it before XkbRemoveResourceClient, then
    infinite loop ensues, and the server appears to hang on exit or crash.

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@sun.com&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
    Reviewed-by: Daniel Stone &lt;daniel@fooishbar.org&gt;
    Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;

Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>ProcGetPointerMapping uses rep.nElts before it is initialized</title>
<updated>2018-07-03T14:13:43+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2018-06-21T20:08:08+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=389e3a4459e3b61eea3a21aba560122dbca264e6'/>
<id>urn:sha1:389e3a4459e3b61eea3a21aba560122dbca264e6</id>
<content type='text'>
Backport of this xorg upstream commit (with omitting the mentioned
d792ac125a0462a04a930af543cbc732f8cdab7d).

  commit 34cf559bcf99dad550527b5ff53f247f0e8e73ee
  Author: Keith Packard &lt;keithp@keithp.com&gt;
  Date:   Tue Jul 10 15:58:48 2012 -0700

    ProcGetPointerMapping uses rep.nElts before it is initialized

    In:

            commit d792ac125a0462a04a930af543cbc732f8cdab7d
            Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
            Date:   Mon Jul 9 19:12:43 2012 -0700

                Use C99 designated initializers in dix Replies

    the initializer for the .length element of the xGetPointerMappingReply
    structure uses the value of rep.nElts, but that won't be set until
    after this initializer runs, so we get garbage in the length element
    and clients using it will generally wedge.

    Easy to verify:

            $ xmodmap -pp

    Fixed by creating a local nElts variable and using that.

    Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
    Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;

Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>Fix some valgrind findings</title>
<updated>2018-07-03T14:13:43+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2018-06-21T19:46:52+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=1e3db85a026338e5a56de9f75bddeff283ba24fb'/>
<id>urn:sha1:1e3db85a026338e5a56de9f75bddeff283ba24fb</id>
<content type='text'>
Some of them have not been seen in the wild yet.

Partly fixes ArcticaProject/nx-libs#711
</content>
</entry>
<entry>
<title>Lift dix to xorg-xserver-1.3.0.0 state</title>
<updated>2018-02-26T04:07:49+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2018-01-22T23:47:38+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=485d626769c53c7d72ffad2f4e8623d6ce897662'/>
<id>urn:sha1:485d626769c53c7d72ffad2f4e8623d6ce897662</id>
<content type='text'>
</content>
</entry>
<entry>
<title>reduce usage of uninitialised bytes</title>
<updated>2017-12-27T23:17:54+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2017-12-10T22:57:35+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=6acbfab33133a92dbd7f128284d26f94bfeb1af2'/>
<id>urn:sha1:6acbfab33133a92dbd7f128284d26f94bfeb1af2</id>
<content type='text'>
as reported by valgrind
</content>
</entry>
<entry>
<title>DIX: XKB: Set xkbInfo to NULL as well as freeing it</title>
<updated>2017-12-07T06:20:55+00:00</updated>
<author>
<name>Daniel Stone</name>
<email>daniel@fooishbar.org</email>
</author>
<published>2017-12-05T21:39:34+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=aac4c5f590de3a6dacb01579848b25f6bdd3cc56'/>
<id>urn:sha1:aac4c5f590de3a6dacb01579848b25f6bdd3cc56</id>
<content type='text'>
Backported from X.org:

   commit 512bac25ec0e980968b93a2ebe88bd89bf99b697
   Author: Daniel Stone &lt;daniel@fooishbar.org&gt;
   Date:   Tue Nov 6 14:52:03 2007 +0000

    DIX: XKB: Set xkbInfo to NULL as well as freeing it (bug # 10639)

    XkbRemoveResourceClient wants to access xkbInfo if it exists, so make
    sure we NULL it after freeing it.  It doesn't make much sense to move
    the RemoveResourceClient call first, as there's not much point in
    notifying clients while we're shutting the server down anyway.

Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>dix: Fix compiler warning</title>
<updated>2017-03-10T18:44:22+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2017-03-03T22:43:50+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=e17c42e55fba79c1e265928f85bfd2b6c9908adb'/>
<id>urn:sha1:e17c42e55fba79c1e265928f85bfd2b6c9908adb</id>
<content type='text'>
devices.c: In function ‘_AddInputDevice’:
devices.c:120:22: warning: assignment from incompatible pointer type [enabled by default]
     dev-&gt;devPrivates = dev-&gt;unwrapProc = NULL;
</content>
</entry>
<entry>
<title>replace (DE)ALLOCATE_LOCAL by malloc/free</title>
<updated>2017-03-03T17:58:43+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2017-03-02T14:38:08+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=09ef99919c010801bd4220d482a867035b6f4f25'/>
<id>urn:sha1:09ef99919c010801bd4220d482a867035b6f4f25</id>
<content type='text'>
This is basically a backport of the following commits + replacing
xalloc/xfree by malloc/free. Fixes ArcticaProject/nx-libs#358.

   commit 2761c103311a1160bc483fd0367d654733df8598
   Author: Daniel Stone &lt;daniel@fooishbar.org&gt;
   Date:   Mon Nov 5 14:03:26 2007 +0000

       OS: Remove usage of alloca

       Replace with heap allocations.

   commit 5e363500c86042c394595e1a6633581eb8fcd1bb
   Author: Daniel Stone &lt;daniel@fooishbar.org&gt;
   Date:   Mon Nov 5 14:38:28 2007 +0000

       OS: Remove ALLOCATE_LOCAL from os.h

       Remove ALLOCATE_LOCAL_FALLBACK and DEALLOCATE_LOCAL_FALLBACK from os.h, and
       remove the include of Xalloca.h as well.
</content>
</entry>
</feed>
