<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/render, branch 3.5.99.22</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://cgit.arctica-project.org/nx-libs/atom?h=3.5.99.22</id>
<link rel='self' href='https://cgit.arctica-project.org/nx-libs/atom?h=3.5.99.22'/>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/'/>
<updated>2019-06-22T09:30:47+00:00</updated>
<entry>
<title>render: Propagate allocation failure from createSourcePicture()</title>
<updated>2019-06-22T09:30:47+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-19T22:51:32+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=78eff73e4a8cf6a428dd4bd5ed50e0515ec8794f'/>
<id>urn:sha1:78eff73e4a8cf6a428dd4bd5ed50e0515ec8794f</id>
<content type='text'>
  commit 211d4c2d353b5e379716484055a3f58235ea65f4
  Author: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
  Date:   Wed Dec 14 15:55:22 2011 +0000

    render: Propagate allocation failure from createSourcePicture()

    All the callers were already checking for failure, except that
    createSourcePicture() itself was failing to check whether it
    successfully allocated the Picture.

    [ajax: Rebase, fix line wrap of preceding line]

    Signed-off-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
    Reviewed-by: Jeremy Huddleston &lt;jeremyhu@apple.com&gt;
</content>
</entry>
<entry>
<title>glyph.c: fix a read beyond end of heap buffer</title>
<updated>2019-06-22T09:30:41+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-19T21:10:40+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=234be0245324b01676aff764b756248f4e57b45d'/>
<id>urn:sha1:234be0245324b01676aff764b756248f4e57b45d</id>
<content type='text'>
If compiled with -fsanitize=address this showed up when running startlxde:

==11551==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60d000018fbc at pc 0x7f270a9ed57b bp 0x7fff30ef3050 sp 0x7fff30ef2800
READ of size 204 at 0x60d000018fbc thread T0
    #0 0x7f270a9ed57a  (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xb857a)
    #1 0x559dafcd5c93 in FindGlyphRef ../../render/glyph.c:179
    #2 0x559dafcd705d in AddGlyph /work/nx-libs/nx-X11/programs/Xserver/hw/nxagent/NXglyph.c:71
    #3 0x559dafccc0ff in ProcRenderAddGlyphs ../../mi/../render/render.c:1186
    #4 0x559dafcbd5a5 in ProcRenderDispatch /work/nx-libs/nx-X11/programs/Xserver/hw/nxagent/NXrender.c:1689
    #5 0x559dafcbc4ea in Dispatch /work/nx-libs/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c:476
    #6 0x559dafc4e9b0 in main /work/nx-libs/nx-X11/programs/Xserver/dix/main.c:353
    #7 0x7f2708e1d09a in __libc_start_main ../csu/libc-start.c:308
    #8 0x559dafc4f5d9 in _start (/work/nx-libs/nx-X11/programs/Xserver/nxagent+0x6e5d9)

0x60d000018fbc is located 0 bytes to the right of 140-byte region [0x60d000018f30,0x60d000018fbc)
allocated by thread T0 here:
    #0 0x7f270aa1e330 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
    #1 0x559dafcd646c in AllocateGlyph ../../render/glyph.c:348

This happens when two glyphs are compared via memcmp and the smaller
one happens to be identical to the beginning of the bigger one.

Newer render implementations use a sha1 hash instead of memcmp so this
patch will (hopefully) be obsolete once render gets updated.
</content>
</entry>
<entry>
<title>render/glyph.c: add missing usage_hint</title>
<updated>2019-06-11T09:32:55+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-05-22T22:17:21+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=49adb1e5ccf6cd5da186a6ca10bfb6e8048b4be4'/>
<id>urn:sha1:49adb1e5ccf6cd5da186a6ca10bfb6e8048b4be4</id>
<content type='text'>
was missing in 8b5bb2cdafe5f7bd77826a1fd28f07b7329be899
</content>
</entry>
<entry>
<title>Use C99 designated initializers in various extension Replies</title>
<updated>2019-02-28T22:13:49+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-02-28T22:13:49+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=c6b6a8fcb75023b89ec1d4b9f3ce3c9eb44764e1'/>
<id>urn:sha1:c6b6a8fcb75023b89ec1d4b9f3ce3c9eb44764e1</id>
<content type='text'>
  commit cc5f09c86f7bea23b7546c3491b2c52ce8100a71
  Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
  Date:   Mon Jul 9 19:12:43 2012 -0700

    Use C99 designated initializers in various extension Replies

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Keith Packard &lt;keithp@keithp.com&gt;
    Tested-by: Daniel Stone &lt;daniel@fooishbar.org&gt;

Attributes ArcticaProject/nx-libs#382
</content>
</entry>
<entry>
<title>Use calloc to zero fill buffers being allocated for replies &amp; events</title>
<updated>2019-02-28T22:11:23+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-02-28T22:11:23+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=c81a45785970aa198736d8dc578beb2d7bbd1b2f'/>
<id>urn:sha1:c81a45785970aa198736d8dc578beb2d7bbd1b2f</id>
<content type='text'>
  commit cdf5bcd420e5bcf4a4a24a275d3133a4e16ce41e
  Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
  Date:   Mon Jul 9 19:12:42 2012 -0700

    Use calloc to zero fill buffers being allocated for replies &amp; events

    Ensures padding bytes are zero-filled

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Keith Packard &lt;keithp@keithp.com&gt;
    Tested-by: Daniel Stone &lt;daniel@fooishbar.org&gt;

Attributes ArcticaProject/nx-libs#382
</content>
</entry>
<entry>
<title>misc: fix more regressions and whitespace weirdness introduced in 913fcf1a74426725f14380dd5b34286a21c37ab7.</title>
<updated>2018-07-07T06:05:24+00:00</updated>
<author>
<name>Mihai Moldovan</name>
<email>ionic@ionic.de</email>
</author>
<published>2018-07-07T06:04:51+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=992673157077080f3d5637c7f666e43639181a91'/>
<id>urn:sha1:992673157077080f3d5637c7f666e43639181a91</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix some memory leaks.</title>
<updated>2018-07-03T14:40:06+00:00</updated>
<author>
<name>Mario Trangoni</name>
<email>mjtrangoni@gmail.com</email>
</author>
<published>2018-03-25T14:13:10+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=913fcf1a74426725f14380dd5b34286a21c37ab7'/>
<id>urn:sha1:913fcf1a74426725f14380dd5b34286a21c37ab7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Lift fb to xorg-xserver-7.1/1.1 state</title>
<updated>2018-02-05T12:57:14+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2017-11-05T20:41:08+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=f7207bcdc1b1f5d4b52cd3dccdde3762245ee42b'/>
<id>urn:sha1:f7207bcdc1b1f5d4b52cd3dccdde3762245ee42b</id>
<content type='text'>
Fixes ArcticaProject/nx-libs#640
</content>
</entry>
<entry>
<title>devPrivates fixes</title>
<updated>2017-12-07T06:20:55+00:00</updated>
<author>
<name>Lars Knoll</name>
<email>lars@trolltech.com</email>
</author>
<published>2017-12-05T21:14:22+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=e073093cc9ea46eb1740440d286c2874b98fd3ae'/>
<id>urn:sha1:e073093cc9ea46eb1740440d286c2874b98fd3ae</id>
<content type='text'>
Backported from X.Org:

    commit 0693083335185ce05ee64546151f3fc43ce98575
    Author: Lars Knoll &lt;lars@trolltech.com&gt;
    Date:   Mon Mar 6 21:00:09 2006 +0000

    render/picture.c Correctly initialize devPrivates variable in source only
        pictures to 0
    miext/cw/cw.h Don't try to access devPrivates of source only pictures

Backported-from-NX-by: Ulrich Sibiller &lt;uli42@gmx.de&gt;
</content>
</entry>
<entry>
<title>Revert "NXpicturestr_PictSolidFill.h: Drop file and revert db8705. Not an issue anymore nowadays."</title>
<updated>2017-04-21T10:17:06+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-04-21T10:07:37+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=61d5cd0b75acc0ca3bfe2b6addc052c4aae8e6f2'/>
<id>urn:sha1:61d5cd0b75acc0ca3bfe2b6addc052c4aae8e6f2</id>
<content type='text'>
 This reverts commit 6c8c950258cf0da0cf24c5e80c2216914ac282a4.

 Fixes ArcticaProject/nx-libs#433.

 This patch is still a candidate for being re-implemented without extending the
 _PictSolidFill struct, but for now, we'll have to re-introduce commit db8705
 for the sake of having fonts readable after resumption of remote NX sessions.
</content>
</entry>
</feed>
