<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/xkb, branch 3.6.x</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://cgit.arctica-project.org/nx-libs/atom?h=3.6.x</id>
<link rel='self' href='https://cgit.arctica-project.org/nx-libs/atom?h=3.6.x'/>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/'/>
<updated>2024-05-11T16:56:10+00:00</updated>
<entry>
<title>Xext,os,xkb: repeat unifdefs</title>
<updated>2024-05-11T16:56:10+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2024-05-05T18:39:23+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=0670f7583d63977cb175ffe11a64061f88c1bf31'/>
<id>urn:sha1:0670f7583d63977cb175ffe11a64061f88c1bf31</id>
<content type='text'>
there where remnants of WIN32, CYGWIN and SCO
</content>
</entry>
<entry>
<title>Revert "CVE-2020-14360: Check SetMap request length carefully."</title>
<updated>2021-01-15T16:00:42+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2021-01-15T16:00:42+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=1257561577cd8227f3534fc44b72a1239aba363c'/>
<id>urn:sha1:1257561577cd8227f3534fc44b72a1239aba363c</id>
<content type='text'>
This reverts commit 4eba4f53ad8c62c27c12835e58184d66121ff636.
</content>
</entry>
<entry>
<title>CVE-2020-14360: Check SetMap request length carefully.</title>
<updated>2020-12-10T09:30:06+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2020-12-10T09:24:29+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=d5a3b440130257e08f7e507eae711885b4f4db50'/>
<id>urn:sha1:d5a3b440130257e08f7e507eae711885b4f4db50</id>
<content type='text'>
  Backported from X.org:

  From 446ff2d3177087b8173fa779fa5b77a2a128988b Mon Sep 17 00:00:00 2001
  From: Matthieu Herrb &lt;matthieu@herrb.eu&gt;
  Date: Thu, 12 Nov 2020 19:15:07 +0100
  Subject: [PATCH] Check SetMap request length carefully.

  Avoid out of bounds memory accesses on too short request.

  ZDI-CAN 11572 /  CVE-2020-14360

  This vulnerability was discovered by:
  Jan-Niklas Sohn working with Trend Micro Zero Day Initiative

  Fixes ArcticaProject/nx-libs#972.
</content>
</entry>
<entry>
<title>xkb/xkbUtils.c: add link to bugreport</title>
<updated>2020-05-07T10:55:04+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-14T21:16:32+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=3053d7a80694fefdbbfcc3edfeec80fbfa674127'/>
<id>urn:sha1:3053d7a80694fefdbbfcc3edfeec80fbfa674127</id>
<content type='text'>
The problem we are fixing (or better "working around") here has also
been seen in XQuartz, but no-one has found the reason yet.

Point to bugreport so that anyone stumbling over this in future can
check if there's a better fix and possibly implement that one.
</content>
</entry>
<entry>
<title>_XkbFilterDeviceBtn: move variable declarations to match usage scope</title>
<updated>2020-01-09T23:25:46+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-09T21:50:13+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=1a1ace774f49bccbb4760b4a0c58e56bf46548db'/>
<id>urn:sha1:1a1ace774f49bccbb4760b4a0c58e56bf46548db</id>
<content type='text'>
Fix this warning:

xkbActions.c: In function ‘_XkbFilterDeviceBtn’:
xkbActions.c:1084:6: warning: declaration of ‘button’ shadows a previous local [-Wshadow=compatible-local]
  int button;
      ^~~~~~
xkbActions.c:1044:6: note: shadowed declaration is here
 int  button;
      ^~~~~~

Backport of this xorg-xserver upstream commit:

  commit 41dd7cf673e47ab74c5065b8dbf268b2e5facb64
  Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
  Date:   Mon Dec 12 16:49:34 2011 -0800

    _XkbFilterDeviceBtn: move variable declarations to match usage scope

    The main body of this function is an if { } else if { } pair of blocks.
    Previously there was int button at the top level scope which is used
    only in the first block, and a redeclaration of int button inside the
    second block.   Since there's no overlap in the code paths for the
    two uses of button, move the one from the outer block into the first
    block to help the programmer more quickly determine they are unrelated
    usages, and to silence the gcc warning of:

    xkbActions.c: In function '_XkbFilterDeviceBtn':
    xkbActions.c:999:6: warning: declaration of 'button' shadows a previous local
    xkbActions.c:955:6: warning: shadowed declaration is here

    For consistency, move DeviceIntPtr dev declarations as well that are
    used in the same way.

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Jamey Sharp &lt;jamey@minilop.net&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>XkbFindSrvLedInfo: remove extraneous name-clashing sli variable</title>
<updated>2020-01-09T23:25:46+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-09T21:44:55+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=914f88a8ab7bbbef3f0cb0674dfa5bd1fbddf050'/>
<id>urn:sha1:914f88a8ab7bbbef3f0cb0674dfa5bd1fbddf050</id>
<content type='text'>
Fix shadow warning:

xkbLEDs.c: In function ‘XkbFindSrvLedInfo’:
xkbLEDs.c:633:19: warning: declaration of ‘sli’ shadows a previous local [-Wshadow=compatible-local]
  XkbSrvLedInfoPtr sli;
                   ^~~
xkbLEDs.c:629:18: note: shadowed declaration is here
 XkbSrvLedInfoPtr sli;
                  ^~~

Backport of this xorg-xserver commit:

  commit d8eb9b5faa2d2c9350bdaffef8749a9cac3c87b8
  Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
  Date:   Mon Dec 12 16:49:34 2011 -0800

    XkbFindSrvLedInfo: remove extraneous name-clashing sli variable

    Variable is already defined outside the outer if statement, and
    there's no need to redefine inside the if statement.

    No point in setting sli before if (dev-&gt;kbdfeed-&gt;xkb_sli==NULL)
    check - if check is true, we immediately set it, if check is false,
    we immediately return without further reference or use of it.

    The one thing we do with it inside the inner if statement is store
    an allocation in it for a brief moment before writing to the final
    destination, which is immediately returned to the caller.

    In short, there's no benefit to the variable at all in this block,
    it just gives the optimizer more code to figure out how to omit.

    Fixes gcc warning:
    xkbLEDs.c: In function 'XkbFindSrvLedInfo':
    xkbLEDs.c:683:19: warning: declaration of 'sli' shadows a previous local
    xkbLEDs.c:679:18: warning: shadowed declaration is here

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Jamey Sharp &lt;jamey@minilop.net&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>xkb: fix shadow warnings</title>
<updated>2020-01-09T23:25:46+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-09T21:41:53+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=ae180b6b52640512fcf0bf6b05bba3449b409640'/>
<id>urn:sha1:ae180b6b52640512fcf0bf6b05bba3449b409640</id>
<content type='text'>
xkb.c: In function ‘ProcXkbSetCompatMap’:
xkb.c:2601:20: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
  register unsigned i,bit;
                    ^
xkb.c:2529:23: note: shadowed declaration is here
     register unsigned i,bit;
                       ^
xkb.c:2601:22: warning: declaration of ‘bit’ shadows a previous local [-Wshadow=compatible-local]
  register unsigned i,bit;
                      ^~~
xkb.c:2529:25: note: shadowed declaration is here
     register unsigned i,bit;
                         ^~~

Backport of this xorg upstream commit:

  commit 344eea237fc07dedfd733d14f95ed0ad26bb5f81
  Author: Yaakov Selkowitz &lt;yselkowitz@users.sourceforge.net&gt;
  Date:   Tue Oct 16 02:04:34 2012 -0500

    xkb: fix shadow warnings

    Signed-off-by: Yaakov Selkowitz &lt;yselkowitz@users.sourceforge.net&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>xkbActions.c: fix formatting</title>
<updated>2020-01-05T23:18:44+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-12-03T17:59:11+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=3d77840c17196bc215302461d0433109c3327378'/>
<id>urn:sha1:3d77840c17196bc215302461d0433109c3327378</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xkb: replace NX_TRANS_SOCKET by NXAGENT_SERVER</title>
<updated>2019-09-29T15:10:05+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-07-31T22:13:07+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=7d2a222f2c6b87c7277b50ed89e522b39a495975'/>
<id>urn:sha1:7d2a222f2c6b87c7277b50ed89e522b39a495975</id>
<content type='text'>
This has nothing to do with the transport.
</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://cgit.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>
</feed>
