<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/render/glyph.c, branch pr/extend_manpage</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://openid.arctica-project.org/nx-libs/atom?h=pr%2Fextend_manpage</id>
<link rel='self' href='https://openid.arctica-project.org/nx-libs/atom?h=pr%2Fextend_manpage'/>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/'/>
<updated>2019-06-22T09:30:41+00:00</updated>
<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://openid.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://openid.arctica-project.org/nx-libs/commit/?id=49adb1e5ccf6cd5da186a6ca10bfb6e8048b4be4'/>
<id>urn:sha1:49adb1e5ccf6cd5da186a6ca10bfb6e8048b4be4</id>
<content type='text'>
was missing in 8b5bb2cdafe5f7bd77826a1fd28f07b7329be899
</content>
</entry>
<entry>
<title>Clearing comments from $XFree86$ (et al.) header lines.</title>
<updated>2017-04-19T11:08:45+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-04-19T11:08:26+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=4ad88de861f6a513d4d6ae4b4609f7ced1001a6b'/>
<id>urn:sha1:4ad88de861f6a513d4d6ae4b4609f7ced1001a6b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>misc nx-X11/programs/Xserver/{hw/nxagent,miext,render}/: move code around so that we can drop nx-X11/programs/Xserver/render/miglyph.c (and by extension nx-X11/programs/Xserver/hw/nxagent/NXmiglyph.c.)</title>
<updated>2017-03-03T11:19:53+00:00</updated>
<author>
<name>Mihai Moldovan</name>
<email>ïonic@ionic.de</email>
</author>
<published>2016-07-20T02:41:03+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=1a7fc41c2c011c05c3dc0cd8eb4ade98a2186217'/>
<id>urn:sha1:1a7fc41c2c011c05c3dc0cd8eb4ade98a2186217</id>
<content type='text'>
This is essentially a bastardized cross/backport of these X.Org commits - based
on our current architecture:

commit 4b14c9a9cd2033d3839c4ba364d41ab4c4b198ab
Author: Eric Anholt &lt;eric@anholt.net&gt;
Date:   Fri Oct 19 16:34:54 2007 -0700

    Replace calls to Glyphs screen hook with CompositeGlyphs and remove dead code.

    Not all of the DDX/miext Glyphs hook implementations have been removed, but
    they should be.

and

commit 2251572062b2c25643671b8d5070de1c3f7ae976
Author: Aaron Plattner &lt;aplattner@nvidia.com&gt;
Date:   Fri Oct 26 15:13:50 2007 -0700

    Restore the CompositeGlyphs -&gt; ps-&gt;Glyphs -&gt; miGlyphs callchain to allow acceleration architectures to wrap above miGlyphs.

Conflicts:
	nx-X11/programs/Xserver/render/miglyph.c
	nx-X11/programs/Xserver/render/mipict.h
	nx-X11/programs/Xserver/render/picture.c
</content>
</entry>
<entry>
<title>nx-X11/programs/Xserver: Drop {X,x}realloc() macros, use realloc() instead.</title>
<updated>2016-07-02T12:05:31+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-06-26T00:08:32+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=74a5450bc058354e55c1589e64ef8e73775cebc4'/>
<id>urn:sha1:74a5450bc058354e55c1589e64ef8e73775cebc4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>nx-X11/programs/Xserver: Drop {X,x}alloc() macros, use malloc() instead.</title>
<updated>2016-07-02T12:05:30+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-06-25T23:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=2646fc254e75c4a7fc10d03d1139d0bd708ceae9'/>
<id>urn:sha1:2646fc254e75c4a7fc10d03d1139d0bd708ceae9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>nx-X11/programs/Xserver: Drop {X,x}free() macros, use free() instead.</title>
<updated>2016-07-02T12:05:30+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-06-25T23:38:22+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=acf87144d019f18e646501657d9082c6eba77f54'/>
<id>urn:sha1:acf87144d019f18e646501657d9082c6eba77f54</id>
<content type='text'>
Fixes ArcticaProject/nx-libs#105
</content>
</entry>
<entry>
<title>hw/nxagent/NXglyph.c: Shrink file, drop duplicate code that can identically be found in render/glyph.c.</title>
<updated>2016-06-24T22:39:27+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-04-18T06:19:05+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=0571ece6a4ea66b4d558b3f6d0dc1d81b47c799b'/>
<id>urn:sha1:0571ece6a4ea66b4d558b3f6d0dc1d81b47c799b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>HAVE_STDINT_H: Always include &lt;stdint.h&gt;.</title>
<updated>2016-05-02T13:38:34+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-03-21T15:11:46+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=ce8fb1f93f71246462d5692c42c88989eb32b1d2'/>
<id>urn:sha1:ce8fb1f93f71246462d5692c42c88989eb32b1d2</id>
<content type='text'>
 We don't define HAVE_STDINT_H anywhere and it should be more safe using
 the system's definition of UINT32_MAX.
</content>
</entry>
<entry>
<title>Replace 'pointer' type with 'void *'</title>
<updated>2015-12-28T11:54:40+00:00</updated>
<author>
<name>Keith Packard</name>
<email>keithp@keithp.com</email>
</author>
<published>2015-06-22T07:36:08+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=68dd0b52e13c844d662192654fb10cb993257a59'/>
<id>urn:sha1:68dd0b52e13c844d662192654fb10cb993257a59</id>
<content type='text'>
 This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer'
 is used throughout the X server for other things, and having duplicate
 names generates compiler warnings.

 Signed-off-by: Keith Packard &lt;keithp@keithp.com&gt;
 Reviewed-by: Eric Anholt &lt;eric@anholt.net&gt;
 Rebased against NX: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
</content>
</entry>
</feed>
