<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/lib/X11/XKBGetMap.c, branch update-workflows</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://isbjoern.arctica-project.org/nx-libs/atom?h=update-workflows</id>
<link rel='self' href='https://isbjoern.arctica-project.org/nx-libs/atom?h=update-workflows'/>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/'/>
<updated>2017-08-25T08:06:49+00:00</updated>
<entry>
<title>Convert nx-X11/lib/ build flow from imake to autotools.</title>
<updated>2017-08-25T08:06:49+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-07-21T10:31:09+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=c350873c7c977efe5210484f04160be45f84ba7e'/>
<id>urn:sha1:c350873c7c977efe5210484f04160be45f84ba7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rearrange some variable declarations &amp; initializations in XKB</title>
<updated>2016-10-19T19:40:28+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2013-08-17T01:27:28+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=2824899d280f2b169b3e745b222f9a981c1ce5f7'/>
<id>urn:sha1:2824899d280f2b169b3e745b222f9a981c1ce5f7</id>
<content type='text'>
Little things noticed during XKB restyling that seemed to make the
code easier to read.

Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>Reindent XKB code to X.Org standard style</title>
<updated>2016-10-19T19:40:28+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2013-08-11T20:29:33+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=3c5880e7254dcd04ea8e54d53ec99880e2dfdc27'/>
<id>urn:sha1:3c5880e7254dcd04ea8e54d53ec99880e2dfdc27</id>
<content type='text'>
Signed-off-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 overflow checks in _XkbReadKeySyms when key_sym_map is already created</title>
<updated>2016-10-19T19:40:28+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2013-08-17T01:14:14+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=3cd82252610ac02483f776de95c9c771e71d8864'/>
<id>urn:sha1:3cd82252610ac02483f776de95c9c771e71d8864</id>
<content type='text'>
We were checking to make sure that the largest keysym value was within
the range of the allocated buffer, but checking against different limits
in the not-yet-allocated vs. the already-allocated branches.

The check should be the same in both, and reflect the size used for the
allocation, which is based on the maximum key code value, so we move it
to be a common check, before we branch, instead of duplicating in each
branch.

map-&gt;key_sym_map is an array of XkbSymMapRec structs, [0..max_key_code]
map-&gt;syms is the array for which num_syms is recorded, hence is not the
right value to check for ensuring our key_sym_map accesses are in range.

Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Reported-by: Barry Kauler &lt;bkauler@gmail.com&gt;
Tested-by: Barry Kauler &lt;bkauler@gmail.com&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>Align files with upstream libX11-1.6.0</title>
<updated>2016-10-19T19:40:27+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2016-10-07T21:46:05+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=e2e45b2b3abf46e4e5c27d7c655769f2b693446e'/>
<id>urn:sha1:e2e45b2b3abf46e4e5c27d7c655769f2b693446e</id>
<content type='text'>
This commit looks a bit crazy at first glance. It (re-)introduces lots
of whitespaces and bad formatting.

Explanation: Backporting upstream changes lead to commits being
applied out of order. This meant a lot of manual intervention which in
turn lead to slight differences between upstream and NX.

With this commit these slight differences are minimized which will be
of great help when adding further upstream patches.
</content>
</entry>
<entry>
<title>xkb: fix off-by-one in _XkbReadGetNamesReply and _XkbReadVirtualModMap</title>
<updated>2016-10-19T19:40:27+00:00</updated>
<author>
<name>Julien Cristau</name>
<email>jcristau@debian.org</email>
</author>
<published>2013-05-23T18:39:46+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=78ed233308babdeb428d9292f7e40e438e9b2efd'/>
<id>urn:sha1:78ed233308babdeb428d9292f7e40e438e9b2efd</id>
<content type='text'>
The size of the arrays is max_key_code + 1.  This makes these functions
consistent with the other checks added for CVE-2013-1997.

Also check the XkbGetNames reply when names-&gt;keys was just allocated.

Signed-off-by: Julien Cristau &lt;jcristau@debian.org&gt;
Tested-by: Colin Walters &lt;walters@verbum.org&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>Revert "Add a couple fixups for the security patches"</title>
<updated>2016-10-19T19:40:27+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2016-10-06T21:34:06+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=082e831303bb8c8c63ce40d79bee10855112c014'/>
<id>urn:sha1:082e831303bb8c8c63ce40d79bee10855112c014</id>
<content type='text'>
This reverts commit b092864a39bbcd4f34c5c26a7cd0df90e235815d.

We will use the proper libX11 upstream patches now.
</content>
</entry>
<entry>
<title>Add a couple fixups for the security patches</title>
<updated>2016-10-12T07:34:39+00:00</updated>
<author>
<name>Julien Cristau</name>
<email>jcristau@debian.org</email>
</author>
<published>2013-05-21T19:54:55+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=a9f623f0a63372ca0705e8394fadf514dec55b1c'/>
<id>urn:sha1:a9f623f0a63372ca0705e8394fadf514dec55b1c</id>
<content type='text'>
    Add a couple fixups for the security patches

    - off-by-one in xkb
    - memory leak in an error path

Backport from debian to NX: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>_XkbReadGetMapReply: reject maxKeyCodes smaller than the minKeyCode</title>
<updated>2016-10-12T07:34:39+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2013-03-31T19:22:35+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=dc749a457d62b330051e9fb709960951e05de41b'/>
<id>urn:sha1:dc749a457d62b330051e9fb709960951e05de41b</id>
<content type='text'>
Various other bounds checks in the code assume this is true, so
enforce it when we first get the data from the X server.

Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Signed-off-by: Julien Cristau &lt;jcristau@debian.org&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>unvalidated index in _XkbReadVirtualModMap() [CVE-2013-1997 10/15]</title>
<updated>2016-10-12T07:34:39+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2013-03-02T19:01:04+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=e6d8856ef465f9ab973026236df15d975e9cb069'/>
<id>urn:sha1:e6d8856ef465f9ab973026236df15d975e9cb069</id>
<content type='text'>
If the X server returns modifier map indexes outside the range of the number
of keys it told us to allocate, out of bounds memory writes could occur.

Reported-by: Ilja Van Sprundel &lt;ivansprundel@ioactive.com&gt;
Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Reviewed-by: Matthieu Herrb &lt;matthieu.herrb@laas.fr&gt;
Signed-off-by: Julien Cristau &lt;jcristau@debian.org&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
</feed>
