<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/lib/X11/LRGB.c, branch 3.5.99.18</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://openid.arctica-project.org/nx-libs/atom?h=3.5.99.18</id>
<link rel='self' href='https://openid.arctica-project.org/nx-libs/atom?h=3.5.99.18'/>
<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>LRGB.c: Fix label defined but not used</title>
<updated>2016-10-20T08:16:35+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2016-10-19T19:58:06+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=01eaab8314a7b4a0cc5d5a10d9a0e87fc1709d72'/>
<id>urn:sha1:01eaab8314a7b4a0cc5d5a10d9a0e87fc1709d72</id>
<content type='text'>
LRGB.c: In function ‘LINEAR_RGB_InitSCCData’:
LRGB.c:798:1: warning: label ‘FreeBlueTblElements’ defined but not used [-Wunused-label]
 FreeBlueTblElements:
 ^
</content>
</entry>
<entry>
<title>xcms: use size_t for pointer offsets passed to strncmp</title>
<updated>2016-10-19T19:40:30+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2016-02-06T22:18:32+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=68e3ee67c07282c11cd144fbdb767b41a6dacc4e'/>
<id>urn:sha1:68e3ee67c07282c11cd144fbdb767b41a6dacc4e</id>
<content type='text'>
instead of converting to int and back

Fixes clang warnings of the form:
HVC.c:190:43: warning: implicit conversion changes signedness: 'int' to
      'unsigned long' [-Wsign-conversion]
          if (strncmp(spec, _XcmsTekHVC_prefix, n) != 0) {
              ~~~~~~~

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>xcms: use unsigned indexes when looping through unsigned values</title>
<updated>2016-10-19T19:40:30+00:00</updated>
<author>
<name>Alan Coopersmith</name>
<email>alan.coopersmith@oracle.com</email>
</author>
<published>2016-02-06T21:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=8d8d5cfd8c4f3d25c85d6ed60298f3aa917651eb'/>
<id>urn:sha1:8d8d5cfd8c4f3d25c85d6ed60298f3aa917651eb</id>
<content type='text'>
Clears many gcc warnings of the form:

uvY.c: In function ‘XcmsCIEuvYToCIEXYZ’:
uvY.c:263:19: warning: comparison between signed and unsigned integer
  expressions [-Wsign-compare]
     for (i = 0; i &lt; nColors; i++, pColor++) {
                   ^

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://openid.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>xcms: Fix memory leaks on LINEAR_RGB_InitSCCData error path.</title>
<updated>2016-10-19T19:40:25+00:00</updated>
<author>
<name>Ander Conselvan de Oliveira</name>
<email>ander.conselvan-de-oliveira@nokia.com</email>
</author>
<published>2011-03-30T12:06:10+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=f50e651e8acd28f3798d31038b6b9804b8309a89'/>
<id>urn:sha1:f50e651e8acd28f3798d31038b6b9804b8309a89</id>
<content type='text'>
pScreenData is replaced when building per visual intensity tables. If
malloc failed the old value of pScreenData (stored also in
pScreenDefaultData) was being leaked. Also, property_return wasn't
free'd in that case.

Signed-off-by: Ander Conselvan de Oliveira &lt;ander.conselvan-de-oliveira@nokia.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>xcms: Fix error on LINEAR_RGB_InitSCCData error path.</title>
<updated>2016-10-19T19:40:25+00:00</updated>
<author>
<name>Ander Conselvan de Oliveira</name>
<email>ander.conselvan-de-oliveira@nokia.com</email>
</author>
<published>2011-03-30T12:19:28+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=fefb909a07d633986e9850dbe3baa91cd1531920'/>
<id>urn:sha1:fefb909a07d633986e9850dbe3baa91cd1531920</id>
<content type='text'>
Due to what looks like a copy &amp; paste error, pScreenData-&gt;pBlueTbl would
be accessed after being free'd.

Signed-off-by: Ander Conselvan de Oliveira &lt;ander.conselvan-de-oliveira@nokia.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>xcms/LRGB: don't double-free property_return</title>
<updated>2016-10-19T19:40:24+00:00</updated>
<author>
<name>Ander Conselvan de Oliveira</name>
<email>ander.conselvan-de-oliveira@nokia.com</email>
</author>
<published>2011-01-31T12:02:07+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=ae4e7538e078aff5db75af7b5fafdbb5658cbbb6'/>
<id>urn:sha1:ae4e7538e078aff5db75af7b5fafdbb5658cbbb6</id>
<content type='text'>
property_return was free'd before and in the case the conditional is true,
the call to XcmsGetProperty failed which means that property_return wasn't
set so there is no need to free it again.

Double free of pointer "property_return" in call to "free"

Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Reviewed-by: Erkki Seppälä &lt;erkki.seppala@vincit.fi&gt;
Signed-off-by: Ander Conselvan de Oliveira &lt;ander.conselvan-de-oliveira@nokia.com&gt;
Backported-to-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>xcms/LRGB: Add a label for freeing property_return.</title>
<updated>2016-10-19T19:40:24+00:00</updated>
<author>
<name>Ander Conselvan de Oliveira</name>
<email>ander.conselvan-de-oliveira@nokia.com</email>
</author>
<published>2011-02-01T09:07:25+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=7482afcaa71df7ed60909c3c3f995f4723190d4e'/>
<id>urn:sha1:7482afcaa71df7ed60909c3c3f995f4723190d4e</id>
<content type='text'>
The rest of the code uses goto's to free memory allocated later
and prevent memory leaks, but there were several paths were
property_return was free'd just before a goto.

Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
Signed-off-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>
<entry>
<title>xcms/LRGB: Fix potential resource leak.</title>
<updated>2016-10-19T19:40:24+00:00</updated>
<author>
<name>Ander Conselvan de Oliveira</name>
<email>ander.conselvan-de-oliveira@nokia.com</email>
</author>
<published>2011-01-31T12:02:08+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=8f5a56474671bf3dd4909aa73fec1062fb5a14d8'/>
<id>urn:sha1:8f5a56474671bf3dd4909aa73fec1062fb5a14d8</id>
<content type='text'>
property_return was not free'd if the allocation of pRedTbl failed.

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