<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/lib/X11/lcFile.c, branch update-workflows</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://openid.arctica-project.org/nx-libs/atom?h=update-workflows</id>
<link rel='self' href='https://openid.arctica-project.org/nx-libs/atom?h=update-workflows'/>
<link rel='alternate' type='text/html' href='https://openid.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://openid.arctica-project.org/nx-libs/commit/?id=c350873c7c977efe5210484f04160be45f84ba7e'/>
<id>urn:sha1:c350873c7c977efe5210484f04160be45f84ba7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>drop platform support: unifdef __UNIXOS2__.</title>
<updated>2017-02-08T21:40:46+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-11-15T17:41:52+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=d12f9524138899e43deb1a70fb37c97559d8f64e'/>
<id>urn:sha1:d12f9524138899e43deb1a70fb37c97559d8f64e</id>
<content type='text'>
 Fixes ArcticaProject/nx-libs#271.
</content>
</entry>
<entry>
<title>libX11: rm redundante NULL checks</title>
<updated>2016-10-19T19:40:29+00:00</updated>
<author>
<name>walter harms</name>
<email>wharms@bfs.de</email>
</author>
<published>2014-06-07T13:17:27+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=a98260726b8f878e72223899e21ad87882389e2d'/>
<id>urn:sha1:a98260726b8f878e72223899e21ad87882389e2d</id>
<content type='text'>
This patch removes the last remaining  NULL checks for Xfree()

Signed-off-by: Harms &lt;wharms@bfs,de&gt;
Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>xlibi18n: fix argsize argument to _XlcParsePath</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-11T06:05:13+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=5d6cda4f6442c524db3c52b272f7ff5f7225bec6'/>
<id>urn:sha1:5d6cda4f6442c524db3c52b272f7ff5f7225bec6</id>
<content type='text'>
The array is defined as having NUM_LOCALEDIR entries, so use that
instead of hardcoded 256 value (the other two calls already did this).

Reported by parfait:
   Buffer overflow (CWE 120): In pointer dereference of argv[argc] with index argc
      Pointer size is 64 elements (of 8 bytes each), index is 255
        at line 82 of nx-X11/lib/X11/lcFile.c in function 'parse_line'.
        called at line 178 in function '_XlcParsePath' with argv = argv.
        called at line 722 in function '_XlcLocaleLibDirName' with argv = args, argsize = 256.
        at line 82 of nx-X11/lib/X11/lcFile.c in function 'parse_line'.
        called at line 178 in function '_XlcParsePath' with argv = argv.
        called at line 638 in function '_XlcLocaleDirName' with argv = args, argsize = 256.

[ This bug was found by the Parfait 1.2.0 bug checking tool.
  http://labs.oracle.com/pls/apex/f?p=labs:49:::::P49_PROJECT_ID:13 ]

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>Constify lc_name argument to _XlcLocaleDirName() &amp; _XlcLocaleLibDirName()</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-11T04:46:37+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=d2671c285e1923acae674ef9390a3f8bf23c11b3'/>
<id>urn:sha1:d2671c285e1923acae674ef9390a3f8bf23c11b3</id>
<content type='text'>
Makes code considerably less crufty and clears gcc warnings:
XlcDL.c: In function '_XlcDynamicLoad':
XlcDL.c:384:44: warning: cast discards '__attribute__((const))' qualifier
 from pointer target type [-Wcast-qual]
XlcDL.c:386:51: warning: cast discards '__attribute__((const))' qualifier
 from pointer target type [-Wcast-qual]

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>xlibi18n: convert sprintf calls to snprintf</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-10T06:02:12+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=a1b0fdb2c9852c48ede8e3bc2a7049d707188fd1'/>
<id>urn:sha1:a1b0fdb2c9852c48ede8e3bc2a7049d707188fd1</id>
<content type='text'>
Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Reviewed-by: Matthieu Herrb &lt;matthieu.herrb@laas.fr&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>lcfile: skip over any null entries in args list</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-10T06:02:12+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=bde3d8b141ff42c1f6828e5ed1467b691e54b253'/>
<id>urn:sha1:bde3d8b141ff42c1f6828e5ed1467b691e54b253</id>
<content type='text'>
Previous code seemed to assume that printf("%s", NULL) would result
in a 0-length string, not "(null)" or similar, but since there's no
point looking for files in "(null)/filepath...", instead we just
skip over NULL entries in search paths when generating file names.

In the *DirName() functions, this effectively just moves the "bail on
NULL in arg[i]" check up from the later code that assigned it to targetdir
and then bailed if that was NULL.

Not sure how there ever could be a NULL in arg[i], given the current
implementation of XlcParsePath, but it's easy enough to check once and
reject up front instead of on every reference.

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>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://openid.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>Convert malloc(strlen()); strcpy() sets to strdup</title>
<updated>2016-10-19T19:40:25+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2011-04-13T05:30:45+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=dde00b2f6848a38e9fdbe1e4c85373c8b12944b4'/>
<id>urn:sha1:dde00b2f6848a38e9fdbe1e4c85373c8b12944b4</id>
<content type='text'>
Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Reviewed-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>xlibi18n/lcFile: Removed superfluous check for NULL target_dir</title>
<updated>2016-10-19T19:40:24+00:00</updated>
<author>
<name>Erkki Seppälä</name>
<email>erkki.seppala@vincit.fi</email>
</author>
<published>2011-01-31T12:02:16+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=7576f5f150ee5d6cb32ebc55d2a5b32bd642a32d'/>
<id>urn:sha1:7576f5f150ee5d6cb32ebc55d2a5b32bd642a32d</id>
<content type='text'>
The situation is already handled before this code.

Cannot reach dead expression "0U" inside statement "if (1U + (target_dir ? strl..."

Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Reviewed-by: Ander Conselvan de Oliveira &lt;ander.conselvan-de-oliveira@nokia.com&gt;
Signed-off-by: Erkki Seppälä &lt;erkki.seppala@vincit.fi&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>
</feed>
