/[gentoo-x86]/x11-base/xorg-server/files/1.2.0-zero-out-client-devprivates-on-allocation.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.2.0-zero-out-client-devprivates-on-allocation.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 28 07:41:03 2009 UTC (4 years, 11 months ago) by remi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
x11-base/xorg-server: drop old ebuilds, prune ${FILESDIR}
(Portage version: 2.2_rc42/cvs/Linux i686)

1 http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commit;h=d9e079d2a385203fdd18d958cfc19d759cab4ba8
2 Zero out client devPrivates on allocation.
3 author Eamon Walsh <ewalsh@tycho.nsa.gov>
4 Fri, 22 Dec 2006 18:07:09 +0000 (13:07 -0500)
5 committer Eamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>
6 Fri, 22 Dec 2006 18:07:09 +0000 (13:07 -0500)
7 commit d9e079d2a385203fdd18d958cfc19d759cab4ba8
8 tree 20548a2b4ab268c5a32c5883f3d06816c9f5d43e tree
9 parent e437f357b6850a6c87ca6696870b3abd40e5b8ed commit | commitdiff
10 Zero out client devPrivates on allocation.
11
12 --- xorg-server-1.2.0.orig/dix/dispatch.c 2007-03-18 21:43:21.000000000 +0100
13 +++ xorg-server-1.2.0/dix/dispatch.c 2007-03-18 22:00:24.000000000 +0100
14 @@ -3683,20 +3683,22 @@
15 ppriv = (DevUnion *)(client + 1);
16 else
17 {
18 ppriv = (DevUnion *)xalloc(totalClientSize - sizeof(ClientRec));
19 if (!ppriv)
20 return 0;
21 }
22 client->devPrivates = ppriv;
23 sizes = clientPrivateSizes;
24 ptr = (char *)(ppriv + clientPrivateLen);
25 + if (ppriv)
26 + bzero(ppriv, totalClientSize - sizeof(ClientRec));
27 for (i = clientPrivateLen; --i >= 0; ppriv++, sizes++)
28 {
29 if ( (size = *sizes) )
30 {
31 ppriv->ptr = (pointer)ptr;
32 ptr += size;
33 }
34 else
35 ppriv->ptr = (pointer)NULL;
36 }

  ViewVC Help
Powered by ViewVC 1.1.20