<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/lib/X11/ModMap.c, branch 3.6.x</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://isbjoern.arctica-project.org/nx-libs/atom?h=3.6.x</id>
<link rel='self' href='https://isbjoern.arctica-project.org/nx-libs/atom?h=3.6.x'/>
<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>Fixes: warning: variable 'req' set but not,used</title>
<updated>2016-10-20T08:16:35+00:00</updated>
<author>
<name>walter harms</name>
<email>wharms@bfs.de</email>
</author>
<published>2016-06-04T15:19:59+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=ddc5ed4c9b876e2ae901edebcd59c9d77daeafd3'/>
<id>urn:sha1:ddc5ed4c9b876e2ae901edebcd59c9d77daeafd3</id>
<content type='text'>
Fixes: warning: variable 'req' set but not used [-Wunused-but-set-variable]
       by marking req _X_UNUSED
	Solution was discussed on xorg-devel ML
       Peter Hutter, Alan Coopersmith
        Re: [PATCH libX11 3/5] fix: warning: pointer targets in passing argument 2 of '_XSend' differ in signedness [-Wpointer-sign]

Signed-off-by: harms wharms@bfs.de
</content>
</entry>
<entry>
<title>fix: warning: pointer targets in passing argument 2 of '_XSend' differ in signedness [-Wpointer-sign]</title>
<updated>2016-10-20T08:16:35+00:00</updated>
<author>
<name>walter harms</name>
<email>wharms@bfs.de</email>
</author>
<published>2016-04-26T14:31:27+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=21405f62ba6fe9e14db9b0e3b75b55e150614b2c'/>
<id>urn:sha1:21405f62ba6fe9e14db9b0e3b75b55e150614b2c</id>
<content type='text'>
fix signess warning by casting
Signed-off-by: walter harms &lt;wharms@bfs.de&gt;
</content>
</entry>
<entry>
<title>The validation of server responses avoids out of boundary accesses.</title>
<updated>2016-10-19T19:40:30+00:00</updated>
<author>
<name>Tobias Stoeckmann</name>
<email>tobias@stoeckmann.org</email>
</author>
<published>2016-09-25T19:22:57+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=b17557f9f0cd0ba992415411040e20390fa881f0'/>
<id>urn:sha1:b17557f9f0cd0ba992415411040e20390fa881f0</id>
<content type='text'>
v2: FontNames.c  return a NULL list whenever a single
length field from the server is incohent.

Signed-off-by: Tobias Stoeckmann &lt;tobias@stoeckmann.org&gt;
Reviewed-by: Matthieu Herrb &lt;matthieu@herrb.eu&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>Remove redundant null checks before free</title>
<updated>2016-10-19T19:40:29+00:00</updated>
<author>
<name>walter harms</name>
<email>wharms@bfs.de</email>
</author>
<published>2014-06-05T16:37:40+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=fc26b97ea9053a2aba54824243282e27bc4a1e15'/>
<id>urn:sha1:fc26b97ea9053a2aba54824243282e27bc4a1e15</id>
<content type='text'>
This patch removes some redundant null checks before free.
It should not change the code otherwise. Be aware that this
is only the first series.

Signed-off-by: Harms &lt;wharms@bfs,de&gt;
Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
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>Remove unnecessary casts of pointers to (char *) in calls to Xfree()</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-11T07:07:33+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=26256188b498e122e21ce0e05521dfc58f8b60a5'/>
<id>urn:sha1:26256188b498e122e21ce0e05521dfc58f8b60a5</id>
<content type='text'>
Left one cast behind that is necessary to change from const char *
to char * in nx-X11/lib/X11/lcCharSet.c.

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>XSetModifierMapping: Use Data instead of GetReqExtra</title>
<updated>2016-10-19T19:40:28+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2013-07-24T05:11:34+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=6d64c4164c0c2269b1b5a998f1869a6419c3471d'/>
<id>urn:sha1:6d64c4164c0c2269b1b5a998f1869a6419c3471d</id>
<content type='text'>
Handle arbitrary length data in the same fashion as other calls,
avoiding need to ensure it fits all in the request buffer.

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>libX11: check size of GetReqExtra after XFlush</title>
<updated>2016-10-19T19:40:28+00:00</updated>
<author>
<name>Kees Cook</name>
<email>kees@outflux.net</email>
</author>
<published>2013-06-09T18:13:42+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=ea8239650656846d810a93e7659e182e412f07b3'/>
<id>urn:sha1:ea8239650656846d810a93e7659e182e412f07b3</id>
<content type='text'>
Two users of GetReqExtra pass arbitrarily sized allocations from the
caller (ModMap and Host). Adjust _XGetRequest() (called by the GetReqExtra
macro) to double-check the requested length and invalidate "req" when
this happens. Users of GetReqExtra passing lengths greater than the Xlib
buffer size (normally 16K) must check "req" and fail gracefully instead
of crashing.

Any callers of GetReqExtra that do not check "req" for NULL
will experience this change, in the pathological case, as a NULL
dereference instead of a buffer overflow. This is an improvement, but
the documentation for GetReqExtra has been updated to reflect the need
to check the value of "req" after the call.

Bug that manifested the problem:
https://bugs.launchpad.net/ubuntu/+source/x11-xserver-utils/+bug/792628

Signed-off-by: Kees Cook &lt;kees@outflux.net&gt;
Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
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>Tighten out-of-range comparisons.</title>
<updated>2016-10-19T19:40:27+00:00</updated>
<author>
<name>Thomas Klausner</name>
<email>wiz@NetBSD.org</email>
</author>
<published>2013-06-25T20:35:29+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=39c6e5aa859c633fcb48e299643bb0189f333a0d'/>
<id>urn:sha1:39c6e5aa859c633fcb48e299643bb0189f333a0d</id>
<content type='text'>
[For all of these, LONG_MAX was the correct value to prevent overflows
 for the recent CVEs.   Lowering to INT_MAX catches buggy replies from
 the server that 32-bit clients would reject but 64-bit would accept,
 so we catch bugs sooner, and really, no sane &amp; working server should
 ever report more than 2gb of extension names, font path entries,
 key modifier maps, etc.  -alan- ]

Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
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>Remove more unnecessary casts from Xmalloc/calloc calls</title>
<updated>2016-10-19T19:40:27+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2013-03-08T07:46:05+00:00</published>
<link rel='alternate' type='text/html' href='https://isbjoern.arctica-project.org/nx-libs/commit/?id=e15023b2ad2a5ca8742cbb93fe10cb38ab079831'/>
<id>urn:sha1:e15023b2ad2a5ca8742cbb93fe10cb38ab079831</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>
</feed>
