Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/x11-system
In directory
sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16618/main/finkinfo/x11-system
Modified Files:
Tag: pangocairo-branch
tightvnc.info xfree86.info xfree86.patch xorg.info xorg.patch
Log Message:
merged from HEAD (pangocairo-root-5 to pangocairo-root-6); also, abolish
-no-cpp-precomp
Index: xorg.patch
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/x11-system/xorg.patch,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- xorg.patch 8 Sep 2006 14:23:43 -0000 1.3
+++ xorg.patch 16 Jan 2007 16:03:31 -0000 1.3.2.1
@@ -1,6 +1,6 @@
--- xc/config/cf/Imake.rules 2004-08-13 13:21:43.000000000 -0400
-+++ xc-new/config/cf/Imake.rules 2006-09-07 11:01:46.000000000 -0400
++++ xc-new/config/cf/Imake.rules 2007-01-09 22:50:47.000000000 -0500
@@ -3279,7 +3279,8 @@
-e '/^[ ]*XCOMM$$/s/XCOMM/#/' \
-e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' \
@@ -12,7 +12,7 @@
#ifndef CppFileTarget
--- xc/config/cf/darwin.cf 2004-12-14 23:53:05.000000000 -0500
-+++ xc-new/config/cf/darwin.cf 2006-09-07 11:01:47.000000000 -0400
++++ xc-new/config/cf/darwin.cf 2007-01-09 22:50:47.000000000 -0500
@@ -160,7 +160,7 @@
* The default cpp-3.3 that ships with Panther inserts spurious #pragmas,
* so we use the 3.1-based version.
@@ -23,7 +23,7 @@
# define StandardCppOptions -traditional -D__GNUC__
#else
--- xc/extras/Xpm/lib/create.c 2004-12-16 20:09:36.000000000 -0500
-+++ xc-new/extras/Xpm/lib/create.c 2006-09-07 11:02:36.000000000 -0400
++++ xc-new/extras/Xpm/lib/create.c 2007-01-09 22:50:47.000000000 -0500
@@ -1215,10 +1215,10 @@
register char *src;
register char *dst;
@@ -38,7 +38,7 @@
data = image->data;
iptr = pixelindex;
--- xc/extras/Xpm/lib/scan.c 2004-12-16 20:09:36.000000000 -0500
-+++ xc-new/extras/Xpm/lib/scan.c 2006-09-07 11:02:36.000000000 -0400
++++ xc-new/extras/Xpm/lib/scan.c 2007-01-09 22:50:47.000000000 -0500
@@ -621,8 +621,8 @@
char *dst;
unsigned int *iptr;
@@ -61,7 +61,7 @@
ibu = image->bitmap_unit;
for (y = 0; y < height; y++)
--- xc/extras/freetype2/builds/unix/detect.mk 2004-04-28 06:38:58.000000000
-0400
-+++ xc-new/extras/freetype2/builds/unix/detect.mk 2006-09-07
11:01:47.000000000 -0400
++++ xc-new/extras/freetype2/builds/unix/detect.mk 2007-01-09
22:50:47.000000000 -0500
@@ -20,7 +20,8 @@
#
is_unix := $(strip $(wildcard /sbin/init) \
@@ -73,7 +73,7 @@
PLATFORM := unix
--- xc/extras/freetype2/include/freetype/freetype.h 2004-04-28
06:38:59.000000000 -0400
-+++ xc-new/extras/freetype2/include/freetype/freetype.h 2006-09-07
11:01:47.000000000 -0400
++++ xc-new/extras/freetype2/include/freetype/freetype.h 2007-01-09
22:50:47.000000000 -0500
@@ -17,11 +17,7 @@
@@ -88,7 +88,7 @@
--- xc/extras/freetype2/src/base/ftapi.c 2003-11-14 11:48:24.000000000
-0500
-+++ xc-new/extras/freetype2/src/base/ftapi.c 2006-09-07 11:01:47.000000000
-0400
++++ xc-new/extras/freetype2/src/base/ftapi.c 2007-01-09 22:50:47.000000000
-0500
@@ -118,4 +118,18 @@
}
@@ -109,7 +109,7 @@
+
/* END */
--- xc/extras/freetype2/src/base/ftmac.c 2004-04-28 06:39:03.000000000
-0400
-+++ xc-new/extras/freetype2/src/base/ftmac.c 2006-09-07 11:01:47.000000000
-0400
++++ xc-new/extras/freetype2/src/base/ftmac.c 2007-01-09 22:50:47.000000000
-0500
@@ -319,12 +319,12 @@
if ( assoc->fontSize == 0 )
{
@@ -139,7 +139,7 @@
for ( i = 0 ; i < string_count && i < 64; i++ )
--- xc/extras/freetype2/src/truetype/ttinterp.c 2004-04-28
06:39:07.000000000 -0400
-+++ xc-new/extras/freetype2/src/truetype/ttinterp.c 2006-09-07
11:01:48.000000000 -0400
++++ xc-new/extras/freetype2/src/truetype/ttinterp.c 2007-01-09
22:50:48.000000000 -0500
@@ -2474,7 +2474,7 @@
W = Vx * Vx + Vy * Vy;
@@ -168,7 +168,7 @@
/* We need to decrease W by a minimal amount */
if ( Vx < Vy )
--- xc/include/Xarch.h 2004-04-23 14:43:05.000000000 -0400
-+++ xc-new/include/Xarch.h 2006-09-07 11:01:48.000000000 -0400
++++ xc-new/include/Xarch.h 2007-01-09 22:50:48.000000000 -0500
@@ -32,8 +32,20 @@
* Determine the machine's byte order.
*/
@@ -192,7 +192,7 @@
#define X_BIG_ENDIAN 4321
#define X_LITTLE_ENDIAN 1234
--- xc/lib/GL/apple/dri_driver.h 2004-04-23 14:43:09.000000000 -0400
-+++ xc-new/lib/GL/apple/dri_driver.h 2006-09-07 11:01:48.000000000 -0400
++++ xc-new/lib/GL/apple/dri_driver.h 2007-01-09 22:50:48.000000000 -0500
@@ -40,6 +40,10 @@
#include "Xthreads.h"
#include <CoreGraphics/CoreGraphics.h>
@@ -205,7 +205,7 @@
#ifdef GLX_DIRECT_RENDERING
--- xc/lib/GL/apple/dri_glx.c 2004-07-27 16:23:58.000000000 -0400
-+++ xc-new/lib/GL/apple/dri_glx.c 2006-09-07 11:01:48.000000000 -0400
++++ xc-new/lib/GL/apple/dri_glx.c 2007-01-09 22:50:48.000000000 -0500
@@ -51,7 +51,7 @@
/* Apple OpenGL "driver" information. */
@@ -216,7 +216,7 @@
static const int __driDriverMinor = 0;
static const int __driDriverPatch = 0;
--- xc/lib/X11/imEvToWire.c 2004-04-23 14:43:24.000000000 -0400
-+++ xc-new/lib/X11/imEvToWire.c 2006-09-07 11:03:28.000000000 -0400
++++ xc-new/lib/X11/imEvToWire.c 2007-01-09 22:50:48.000000000 -0500
@@ -408,7 +408,7 @@
}
/* Common process */
@@ -227,7 +227,7 @@
((XAnyEvent *)re)->serial & ~((unsigned long)0xffff);
event->u.u.sequenceNumber = sw16(event->u.u.sequenceNumber, sw);
--- xc/lib/Xcursor/cursor.c 2004-04-23 14:43:40.000000000 -0400
-+++ xc-new/lib/Xcursor/cursor.c 2006-09-07 11:03:34.000000000 -0400
++++ xc-new/lib/Xcursor/cursor.c 2007-01-09 22:50:48.000000000 -0500
@@ -711,6 +711,7 @@
anim[n].delay = images->images[n]->delay;
}
@@ -236,8 +236,89 @@
free (anim);
}
#if defined HAVE_XFIXES && XFIXES_MAJOR >= 2
+--- xc/lib/font/Type1/afm.c 2004-04-23 14:44:08.000000000 -0400
++++ xc-new/lib/font/Type1/afm.c 2007-01-09 22:50:48.000000000 -0500
+@@ -22,6 +22,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <limits.h>
+ #else
+ #include "Xmd.h" /* For INT32 declaration */
+ #include "Xdefs.h" /* For Bool */
+@@ -111,6 +112,11 @@
+
+ fi->nChars = atoi(p);
+
++ if (fi->nChars < 0 || fi->nChars > INT_MAX / sizeof(Metrics)) {
++ xfree(afmbuf);
++ xfree(fi);
++ return(1);
++ }
+ fi->metrics = (Metrics *)xalloc(fi->nChars *
+ sizeof(Metrics));
+ if (fi->metrics == NULL) {
+--- xc/lib/font/Type1/scanfont.c 2004-04-23 14:44:09.000000000 -0400
++++ xc-new/lib/font/Type1/scanfont.c 2007-01-09 22:50:48.000000000 -0500
+@@ -50,6 +50,7 @@
+
+ #ifndef FONTMODULE
+ #include <string.h>
++#include <limits.h>
+ #else
+ #include "Xdefs.h" /* Bool declaration */
+ #include "Xmd.h" /* INT32 declaration */
+@@ -647,6 +648,7 @@
+ arrayP->data.valueP = tokenStartP;
+
+ /* allocate FDArray */
++ /* No integer overflow since arrayP->len is unsigned short */
+ FDArrayP = (psfont *)vm_alloc(arrayP->len*(sizeof(psfont)));
+ if (!(FDArrayP)) return(SCAN_OUT_OF_MEMORY);
+
+@@ -843,7 +845,8 @@
+ }
+ return(SCAN_OK);
+ }
+-
++ if (N > INT_MAX / sizeof(psobj))
++ return (SCAN_ERROR);
+ arrayP = (psobj *)vm_alloc(N*sizeof(psobj));
+ if (!(arrayP) ) return(SCAN_OUT_OF_MEMORY);
+ FontP->Subrs.len = N;
+@@ -904,7 +907,7 @@
+ }
+ else return(rc); /* if next token was not an Int */
+ }
+- if (N<=0) return(SCAN_ERROR);
++ if (N<=0 || N > INT_MAX / sizeof(psdict)) return(SCAN_ERROR);
+ /* save number of entries in the dictionary */
+
+ dictP = (psdict *)vm_alloc((N+1)*sizeof(psdict));
+@@ -1712,6 +1715,10 @@
+ if (tokenType == TOKEN_INTEGER)
+ rangecnt = tokenValue.integer;
+
++ if (rangecnt < 0 || rangecnt > INT_MAX / sizeof(spacerangecode)) {
++ rc = SCAN_ERROR;
++ break;
++ }
+ /* ==> tokenLength, tokenTooLong, tokenType, and */
+ /* tokenValue are now set */
+
+--- xc/lib/font/Type1/util.c 2004-04-23 14:44:09.000000000 -0400
++++ xc-new/lib/font/Type1/util.c 2007-01-09 22:50:48.000000000 -0500
+@@ -97,7 +97,7 @@
+ bytes = (bytes + 7) & ~7;
+
+ /* Allocate the space, if it is available */
+- if (bytes <= vm_free) {
++ if (bytes > 0 && bytes <= vm_free) {
+ answer = vm_next;
+ vm_free -= bytes;
+ vm_next += bytes;
--- xc/lib/font/bitmap/pcfread.c 2004-04-23 14:44:20.000000000 -0400
-+++ xc-new/lib/font/bitmap/pcfread.c 2006-09-07 11:02:20.000000000 -0400
++++ xc-new/lib/font/bitmap/pcfread.c 2007-01-09 22:50:48.000000000 -0500
@@ -32,6 +32,8 @@
* Author: Keith Packard, MIT X Consortium
*/
@@ -339,7 +420,7 @@
if (!metrics) {
pcfError("pmfReadFont(): Couldn't allocate metrics (%d*%d)\n",
nmetrics, sizeof(CharInfoRec));
--- xc/programs/Xserver/Xext/saver.c 2004-12-12 22:34:33.000000000 -0500
-+++ xc-new/programs/Xserver/Xext/saver.c 2006-09-07 11:03:00.000000000
-0400
++++ xc-new/programs/Xserver/Xext/saver.c 2007-01-09 22:50:48.000000000
-0500
@@ -1166,8 +1166,8 @@
FreeAttrs (pAttr);
bail:
@@ -350,8 +431,137 @@
return ret;
}
+--- xc/programs/Xserver/dbe/dbe.c 2004-04-23 15:03:43.000000000 -0400
++++ xc-new/programs/Xserver/dbe/dbe.c 2007-01-09 22:51:03.000000000 -0500
+@@ -51,6 +51,10 @@
+ #include "xf86_ansic.h"
+ #endif
+
++#if !defined(UINT32_MAX)
++#define UINT32_MAX 0xffffffffU
++#endif
++
+ /* GLOBALS */
+
+ /* Per-screen initialization functions [init'ed by DbeRegisterFunction()] */
+@@ -729,11 +733,14 @@
+ return(Success);
+ }
+
++ if (nStuff > UINT32_MAX / sizeof(DbeSwapInfoRec))
++ return BadAlloc;
++
+ /* Get to the swap info appended to the end of the request. */
+ dbeSwapInfo = (xDbeSwapInfo *)&stuff[1];
+
+ /* Allocate array to record swap information. */
+- swapInfo = (DbeSwapInfoPtr)ALLOCATE_LOCAL(nStuff *
sizeof(DbeSwapInfoRec));
++ swapInfo = (DbeSwapInfoPtr)Xalloc(nStuff * sizeof(DbeSwapInfoRec));
+ if (swapInfo == NULL)
+ {
+ return(BadAlloc);
+@@ -748,14 +755,14 @@
+ if (!(pWin = SecurityLookupWindow(dbeSwapInfo[i].window, client,
+ SecurityWriteAccess)))
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(BadWindow);
+ }
+
+ /* Each window must be double-buffered - BadMatch. */
+ if (DBE_WINDOW_PRIV(pWin) == NULL)
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(BadMatch);
+ }
+
+@@ -764,7 +771,7 @@
+ {
+ if (dbeSwapInfo[i].window == dbeSwapInfo[j].window)
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(BadMatch);
+ }
+ }
+@@ -775,7 +782,7 @@
+ (dbeSwapInfo[i].swapAction != XdbeUntouched ) &&
+ (dbeSwapInfo[i].swapAction != XdbeCopied ))
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(BadValue);
+ }
+
+@@ -805,12 +812,12 @@
+ error = (*pDbeScreenPriv->SwapBuffers)(client, &nStuff, swapInfo);
+ if (error != Success)
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(error);
+ }
+ }
+
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(Success);
+
+ } /* ProcDbeSwapBuffers() */
+@@ -894,10 +901,12 @@
+
+ REQUEST_AT_LEAST_SIZE(xDbeGetVisualInfoReq);
+
++ if (stuff->n > UINT32_MAX / sizeof(DrawablePtr))
++ return BadAlloc;
+ /* Make sure any specified drawables are valid. */
+ if (stuff->n != 0)
+ {
+- if (!(pDrawables = (DrawablePtr *)ALLOCATE_LOCAL(stuff->n *
++ if (!(pDrawables = (DrawablePtr *)Xalloc(stuff->n *
+ sizeof(DrawablePtr))))
+ {
+ return(BadAlloc);
+@@ -910,7 +919,7 @@
+ if (!(pDrawables[i] = (DrawablePtr)SecurityLookupDrawable(
+ drawables[i], client, SecurityReadAccess)))
+ {
+- DEALLOCATE_LOCAL(pDrawables);
++ Xfree(pDrawables);
+ return(BadDrawable);
+ }
+ }
+@@ -922,7 +931,7 @@
+ {
+ if (pDrawables)
+ {
+- DEALLOCATE_LOCAL(pDrawables);
++ Xfree(pDrawables);
+ }
+
+ return(BadAlloc);
+@@ -949,7 +958,7 @@
+ /* Free pDrawables if we needed to allocate it above. */
+ if (pDrawables)
+ {
+- DEALLOCATE_LOCAL(pDrawables);
++ Xfree(pDrawables);
+ }
+
+ return(BadAlloc);
+@@ -1030,7 +1039,7 @@
+
+ if (pDrawables)
+ {
+- DEALLOCATE_LOCAL(pDrawables);
++ Xfree(pDrawables);
+ }
+
+ return(client->noClientException);
--- xc/programs/Xserver/dix/events.c 2004-08-08 22:08:35.000000000 -0400
-+++ xc-new/programs/Xserver/dix/events.c 2006-09-07 11:01:49.000000000
-0400
++++ xc-new/programs/Xserver/dix/events.c 2007-01-09 22:50:48.000000000
-0500
@@ -1960,6 +1960,13 @@
*/
&& (!wBoundingShape(pWin) || PointInBorderSize(pWin, x, y))
@@ -367,7 +577,7 @@
{
if (spriteTraceGood >= spriteTraceSize)
--- xc/programs/Xserver/dix/window.c 2004-07-31 04:24:13.000000000 -0400
-+++ xc-new/programs/Xserver/dix/window.c 2006-09-07 11:01:49.000000000
-0400
++++ xc-new/programs/Xserver/dix/window.c 2007-01-09 22:50:49.000000000
-0500
@@ -294,6 +294,9 @@
#ifdef COMPOSITE
pWin->redirectDraw = 0;
@@ -387,7 +597,7 @@
/*
* In rootless mode we can't optimize away window restacks.
--- xc/programs/Xserver/fb/fb.h 2004-12-14 23:53:05.000000000 -0500
-+++ xc-new/programs/Xserver/fb/fb.h 2006-09-07 11:01:49.000000000 -0400
++++ xc-new/programs/Xserver/fb/fb.h 2007-01-09 22:50:49.000000000 -0500
@@ -650,6 +650,10 @@
#ifdef ROOTLESS
#define __fbPixOriginX(pPix) ((pPix)->drawable.x)
@@ -400,7 +610,7 @@
#define __fbPixOriginX(pPix) 0
#define __fbPixOriginY(pPix) 0
--- xc/programs/Xserver/fb/fbblt.c 2004-04-23 15:05:14.000000000 -0400
-+++ xc-new/programs/Xserver/fb/fbblt.c 2006-09-07 11:01:49.000000000 -0400
++++ xc-new/programs/Xserver/fb/fbblt.c 2007-01-09 22:50:49.000000000 -0500
@@ -25,6 +25,10 @@
#include "fb.h"
@@ -472,7 +682,7 @@
{
srcLine += ((srcX + width - 1) >> FB_SHIFT) + 1;
--- xc/programs/Xserver/fb/fbmmx.c 2004-07-22 15:24:50.000000000 -0400
-+++ xc-new/programs/Xserver/fb/fbmmx.c 2006-09-07 11:03:23.000000000 -0400
++++ xc-new/programs/Xserver/fb/fbmmx.c 2007-01-09 22:50:49.000000000 -0500
@@ -29,6 +29,8 @@
#ifdef RENDER
@@ -608,7 +818,7 @@
static __inline__ void
--- xc/programs/Xserver/fb/fbpict.c 2004-08-06 19:42:10.000000000 -0400
-+++ xc-new/programs/Xserver/fb/fbpict.c 2006-09-07 11:01:49.000000000
-0400
++++ xc-new/programs/Xserver/fb/fbpict.c 2007-01-09 22:50:49.000000000
-0500
@@ -25,6 +25,10 @@
#include "fb.h"
@@ -652,7 +862,7 @@
{
dst = dstLine;
--- xc/programs/Xserver/fb/fbsolid.c 2004-07-22 15:24:50.000000000 -0400
-+++ xc-new/programs/Xserver/fb/fbsolid.c 2006-09-07 11:01:49.000000000
-0400
++++ xc-new/programs/Xserver/fb/fbsolid.c 2007-01-09 22:50:50.000000000
-0500
@@ -26,6 +26,10 @@
#include "fb.h"
@@ -689,7 +899,7 @@
while (height--)
{
--- xc/programs/Xserver/hw/darwin/darwinKeyboard.c 2004-04-23
15:06:15.000000000 -0400
-+++ xc-new/programs/Xserver/hw/darwin/darwinKeyboard.c 2006-09-07
11:01:50.000000000 -0400
++++ xc-new/programs/Xserver/hw/darwin/darwinKeyboard.c 2007-01-09
22:50:50.000000000 -0500
@@ -64,7 +64,9 @@
/* Define this to use Alt for Mode_switch. */
#define ALT_IS_MODE_SWITCH 1
@@ -702,7 +912,7 @@
#include <stdio.h>
#include <stdlib.h>
--- xc/programs/Xserver/hw/darwin/quartz/applewmExt.h 2004-04-23
15:15:17.000000000 -0400
-+++ xc-new/programs/Xserver/hw/darwin/quartz/applewmExt.h 2006-09-07
11:01:50.000000000 -0400
++++ xc-new/programs/Xserver/hw/darwin/quartz/applewmExt.h 2007-01-09
22:50:50.000000000 -0500
@@ -59,8 +59,6 @@
FrameDrawProc FrameDraw;
} AppleWMProcsRec, *AppleWMProcsPtr;
@@ -713,13 +923,14 @@
AppleWMProcsPtr procsPtr
);
--- xc/programs/Xserver/hw/vfb/InitOutput.c 2004-08-26 21:15:10.000000000
-0400
-+++ xc-new/programs/Xserver/hw/vfb/InitOutput.c 2006-09-07
11:01:50.000000000 -0400
-@@ -28,6 +28,12 @@
++++ xc-new/programs/Xserver/hw/vfb/InitOutput.c 2007-01-09
22:50:50.000000000 -0500
+@@ -28,6 +28,13 @@
*/
/* $XFree86: xc/programs/Xserver/hw/vfb/InitOutput.c,v 3.25 2003/11/15
04:01:56 dawes Exp $ */
+/* jsh: workaround for 3834723 */
+#ifdef HAS_SHM
++#include <sys/types.h>
+#include <sys/ipc.h>
+#include <sys/shm.h>
+#endif /* HAS_SHM */
@@ -728,7 +939,7 @@
#include <X11/Xwinsock.h>
#endif
--- xc/programs/Xserver/hw/xnest/Screen.c 2004-08-11 18:40:14.000000000
-0400
-+++ xc-new/programs/Xserver/hw/xnest/Screen.c 2006-09-07 11:03:47.000000000
-0400
++++ xc-new/programs/Xserver/hw/xnest/Screen.c 2007-01-09 22:50:50.000000000
-0500
@@ -360,6 +360,11 @@
if (!miScreenDevPrivateInit(pScreen, xnestWidth, NULL))
return FALSE;
@@ -742,7 +953,7 @@
#define POSITION_OFFSET (pScreen->myNum * (xnestWidth + xnestHeight) / 32)
--- xc/programs/Xserver/hw/xnest/Window.c 2004-04-23 15:54:21.000000000
-0400
-+++ xc-new/programs/Xserver/hw/xnest/Window.c 2006-09-07 11:03:47.000000000
-0400
++++ xc-new/programs/Xserver/hw/xnest/Window.c 2007-01-09 22:50:50.000000000
-0500
@@ -449,6 +449,13 @@
}
@@ -758,7 +969,7 @@
xnestRegionEqual(RegionPtr pReg1, RegionPtr pReg2)
{
--- xc/programs/Xserver/hw/xnest/XNWindow.h 2004-04-23 15:54:21.000000000
-0400
-+++ xc-new/programs/Xserver/hw/xnest/XNWindow.h 2006-09-07
11:03:47.000000000 -0400
++++ xc-new/programs/Xserver/hw/xnest/XNWindow.h 2007-01-09
22:50:50.000000000 -0500
@@ -73,6 +73,7 @@
void xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn,
RegionPtr other_exposed);
@@ -768,7 +979,7 @@
#endif /* SHAPE */
--- xc/programs/Xserver/include/servermd.h 2004-08-09 18:37:22.000000000
-0400
-+++ xc-new/programs/Xserver/include/servermd.h 2006-09-07 11:01:50.000000000
-0400
++++ xc-new/programs/Xserver/include/servermd.h 2007-01-09 22:50:50.000000000
-0500
@@ -167,7 +167,7 @@
#endif /* hpux || __hppa__ */
@@ -779,7 +990,7 @@
#define IMAGE_BYTE_ORDER MSBFirst
#define BITMAP_BIT_ORDER MSBFirst
--- xc/programs/Xserver/include/windowstr.h 2004-07-31 04:24:13.000000000
-0400
-+++ xc-new/programs/Xserver/include/windowstr.h 2006-09-07
11:01:50.000000000 -0400
++++ xc-new/programs/Xserver/include/windowstr.h 2007-01-09
22:50:50.000000000 -0500
@@ -139,6 +139,9 @@
#ifdef COMPOSITE
unsigned redirectDraw:1; /* rendering is redirected from here */
@@ -791,7 +1002,7 @@
} WindowRec;
--- xc/programs/Xserver/mi/miinitext.c 2004-12-13 00:48:41.000000000 -0500
-+++ xc-new/programs/Xserver/mi/miinitext.c 2006-09-07 11:03:05.000000000
-0400
++++ xc-new/programs/Xserver/mi/miinitext.c 2007-01-09 22:50:50.000000000
-0500
@@ -608,7 +608,7 @@
#ifdef XSYNC
if (!noSyncExtension) SyncExtensionInit();
@@ -802,7 +1013,7 @@
#endif
#ifdef XCMISC
--- xc/programs/Xserver/mi/miwindow.c 2004-04-23 15:54:26.000000000 -0400
-+++ xc-new/programs/Xserver/mi/miwindow.c 2006-09-07 11:02:53.000000000
-0400
++++ xc-new/programs/Xserver/mi/miwindow.c 2007-01-09 22:50:50.000000000
-0500
@@ -883,7 +883,11 @@
/* and move those bits */
@@ -817,7 +1028,7 @@
/* remove any overwritten bits from the remaining useful bits */
--- xc/programs/Xserver/miext/damage/damage.c 2004-12-12 19:56:07.000000000
-0500
-+++ xc-new/programs/Xserver/miext/damage/damage.c 2006-09-07
11:03:14.000000000 -0400
++++ xc-new/programs/Xserver/miext/damage/damage.c 2007-01-09
22:50:50.000000000 -0500
@@ -742,9 +742,13 @@
/* The driver will only call SourceValidate() when pSrc != pDst,
* but the software sprite (misprite.c) always need to know when a
@@ -836,8 +1047,53 @@
{
BoxRec box;
--- xc/programs/Xserver/render/render.c 2004-08-06 19:42:10.000000000
-0400
-+++ xc-new/programs/Xserver/render/render.c 2006-09-07 11:03:09.000000000
-0400
-@@ -1304,7 +1304,7 @@
++++ xc-new/programs/Xserver/render/render.c 2007-01-09 22:51:03.000000000
-0500
+@@ -48,6 +48,10 @@
+ #include "xf86_ansic.h"
+ #endif
+
++#if !defined(UINT32_MAX)
++#define UINT32_MAX 0xffffffffU
++#endif
++
+ static int ProcRenderQueryVersion (ClientPtr pClient);
+ static int ProcRenderQueryPictFormats (ClientPtr pClient);
+ static int ProcRenderQueryPictIndexValues (ClientPtr pClient);
+@@ -1074,11 +1078,14 @@
+ }
+
+ nglyphs = stuff->nglyphs;
++ if (nglyphs > UINT32_MAX / sizeof(GlyphNewRec))
++ return BadAlloc;
++
+ if (nglyphs <= NLOCALGLYPH)
+ glyphsBase = glyphsLocal;
+ else
+ {
+- glyphsBase = (GlyphNewPtr) ALLOCATE_LOCAL (nglyphs * sizeof
(GlyphNewRec));
++ glyphsBase = (GlyphNewPtr) Xalloc (nglyphs * sizeof (GlyphNewRec));
+ if (!glyphsBase)
+ return BadAlloc;
+ }
+@@ -1135,7 +1142,7 @@
+ }
+
+ if (glyphsBase != glyphsLocal)
+- DEALLOCATE_LOCAL (glyphsBase);
++ Xfree (glyphsBase);
+ return client->noClientException;
+ bail:
+ while (glyphs != glyphsBase)
+@@ -1144,7 +1151,7 @@
+ xfree (glyphs->glyph);
+ }
+ if (glyphsBase != glyphsLocal)
+- DEALLOCATE_LOCAL (glyphsBase);
++ Xfree (glyphsBase);
+ return err;
+ }
+
+@@ -1304,7 +1311,7 @@
{
if (buffer + sizeof (GlyphSet) < end)
{
@@ -847,7 +1103,7 @@
gs,
GlyphSetType,
--- xc/programs/Xserver/xkb/xkbAccessX.c 2004-04-23 15:54:30.000000000
-0400
-+++ xc-new/programs/Xserver/xkb/xkbAccessX.c 2006-09-07 11:03:38.000000000
-0400
++++ xc-new/programs/Xserver/xkb/xkbAccessX.c 2007-01-09 22:50:50.000000000
-0500
@@ -320,7 +320,7 @@
void
AccessXCancelRepeatKey(XkbSrvInfoPtr xkbi,KeyCode key)
@@ -858,7 +1114,7 @@
return;
}
--- xc/programs/fstobdf/chars.c 2004-04-23 15:54:32.000000000 -0400
-+++ xc-new/programs/fstobdf/chars.c 2006-09-07 11:03:19.000000000 -0400
++++ xc-new/programs/fstobdf/chars.c 2007-01-09 22:50:50.000000000 -0500
@@ -213,7 +213,8 @@
encoding=(chHigh << 8)+chLow;
if ((charInfo->width != 0) || (charInfo->right != charInfo->left))
@@ -870,7 +1126,7 @@
}
}
--- xc/programs/xterm/main.c 2005-01-12 16:45:10.000000000 -0500
-+++ xc-new/programs/xterm/main.c 2006-09-07 11:01:50.000000000 -0400
++++ xc-new/programs/xterm/main.c 2007-01-09 22:50:50.000000000 -0500
@@ -376,7 +376,7 @@
#include <local/openpty.h>
#endif /* PUCC_PTYD */
Index: xfree86.patch
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/x11-system/xfree86.patch,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- xfree86.patch 8 Sep 2006 14:23:43 -0000 1.3
+++ xfree86.patch 16 Jan 2007 16:03:31 -0000 1.3.2.1
@@ -1,6 +1,6 @@
--- xc/config/cf/Imake.rules 2005-01-23 12:05:23.000000000 -0500
-+++ xc-new/config/cf/Imake.rules 2006-09-07 11:36:50.000000000 -0400
++++ xc-new/config/cf/Imake.rules 2007-01-09 23:05:26.000000000 -0500
@@ -3339,7 +3339,8 @@
-e '/^[ ]*XCOMM$$/s/XCOMM/#/' \
-e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' \
@@ -12,7 +12,7 @@
#ifndef CppFileTarget
--- xc/extras/Mesa/include/GL/gl.h 2004-12-10 10:30:08.000000000 -0500
-+++ xc-new/extras/Mesa/include/GL/gl.h 2006-09-07 11:36:50.000000000 -0400
++++ xc-new/extras/Mesa/include/GL/gl.h 2007-01-09 23:05:26.000000000 -0500
@@ -149,7 +149,7 @@
typedef float GLclampf; /* single precision float in [0,1] */
typedef double GLdouble; /* double precision float */
@@ -23,7 +23,7 @@
/*
--- xc/extras/Xpm/lib/scan.c 2005-03-12 18:15:46.000000000 -0500
-+++ xc-new/extras/Xpm/lib/scan.c 2006-09-07 11:43:03.000000000 -0400
++++ xc-new/extras/Xpm/lib/scan.c 2007-01-09 23:05:26.000000000 -0500
@@ -638,6 +638,9 @@
ibpp = image->bits_per_pixel;
offset = image->xoffset;
@@ -35,7 +35,7 @@
ibu = image->bitmap_unit;
for (y = 0; y < height; y++)
--- xc/extras/freetype2/builds/unix/detect.mk 2004-04-26 11:40:03.000000000
-0400
-+++ xc-new/extras/freetype2/builds/unix/detect.mk 2006-09-07
11:36:50.000000000 -0400
++++ xc-new/extras/freetype2/builds/unix/detect.mk 2007-01-09
23:05:26.000000000 -0500
@@ -20,7 +20,8 @@
#
is_unix := $(strip $(wildcard /sbin/init) \
@@ -47,7 +47,7 @@
PLATFORM := unix
--- xc/extras/freetype2/include/freetype/freetype.h 2004-04-26
11:40:13.000000000 -0400
-+++ xc-new/extras/freetype2/include/freetype/freetype.h 2006-09-07
11:36:50.000000000 -0400
++++ xc-new/extras/freetype2/include/freetype/freetype.h 2007-01-09
23:05:26.000000000 -0500
@@ -17,11 +17,7 @@
@@ -62,7 +62,7 @@
--- xc/extras/freetype2/src/base/ftapi.c 2005-02-28 18:19:13.000000000
-0500
-+++ xc-new/extras/freetype2/src/base/ftapi.c 2006-09-07 11:36:50.000000000
-0400
++++ xc-new/extras/freetype2/src/base/ftapi.c 2007-01-09 23:05:27.000000000
-0500
@@ -161,5 +161,17 @@
FT_Stream_ExitFrame( stream );
}
@@ -82,7 +82,7 @@
/* END */
--- xc/extras/freetype2/src/base/ftmac.c 2004-04-26 12:15:54.000000000
-0400
-+++ xc-new/extras/freetype2/src/base/ftmac.c 2006-09-07 11:36:51.000000000
-0400
++++ xc-new/extras/freetype2/src/base/ftmac.c 2007-01-09 23:05:27.000000000
-0500
@@ -319,12 +319,12 @@
if ( assoc->fontSize == 0 )
{
@@ -112,7 +112,7 @@
for ( i = 0 ; i < string_count && i < 64; i++ )
--- xc/extras/freetype2/src/truetype/ttinterp.c 2004-04-26
11:40:59.000000000 -0400
-+++ xc-new/extras/freetype2/src/truetype/ttinterp.c 2006-09-07
11:36:51.000000000 -0400
++++ xc-new/extras/freetype2/src/truetype/ttinterp.c 2007-01-09
23:05:27.000000000 -0500
@@ -2474,7 +2474,7 @@
W = Vx * Vx + Vy * Vy;
@@ -141,7 +141,7 @@
/* We need to decrease W by a minimal amount */
if ( Vx < Vy )
--- xc/include/Xarch.h 2003-05-27 18:26:24.000000000 -0400
-+++ xc-new/include/Xarch.h 2006-09-07 11:36:51.000000000 -0400
++++ xc-new/include/Xarch.h 2007-01-09 23:05:27.000000000 -0500
@@ -32,8 +32,20 @@
* Determine the machine's byte order.
*/
@@ -165,7 +165,7 @@
#define X_BIG_ENDIAN 4321
#define X_LITTLE_ENDIAN 1234
--- xc/lib/GL/apple/dri_glx.c 2004-12-10 12:47:24.000000000 -0500
-+++ xc-new/lib/GL/apple/dri_glx.c 2006-09-07 11:36:51.000000000 -0400
++++ xc-new/lib/GL/apple/dri_glx.c 2007-01-09 23:05:27.000000000 -0500
@@ -51,7 +51,7 @@
/* Apple OpenGL "driver" information. */
@@ -176,7 +176,7 @@
static const int __driDriverMinor = 0;
static const int __driDriverPatch = 0;
--- xc/lib/X11/imEvToWire.c 2003-04-13 15:22:20.000000000 -0400
-+++ xc-new/lib/X11/imEvToWire.c 2006-09-07 11:46:40.000000000 -0400
++++ xc-new/lib/X11/imEvToWire.c 2007-01-09 23:05:27.000000000 -0500
@@ -408,7 +408,7 @@
}
/* Common process */
@@ -187,7 +187,7 @@
((XAnyEvent *)re)->serial & ~((unsigned long)0xffff);
event->u.u.sequenceNumber = sw16(event->u.u.sequenceNumber, sw);
--- xc/lib/Xcursor/cursor.c 2003-01-25 22:22:42.000000000 -0500
-+++ xc-new/lib/Xcursor/cursor.c 2006-09-07 11:46:45.000000000 -0400
++++ xc-new/lib/Xcursor/cursor.c 2007-01-09 23:05:27.000000000 -0500
@@ -712,6 +712,7 @@
anim[n].delay = images->images[n]->delay;
}
@@ -197,7 +197,7 @@
return cursor;
}
--- xc/lib/Xpm/Imakefile 2004-11-18 16:30:49.000000000 -0500
-+++ xc-new/lib/Xpm/Imakefile 2006-09-07 11:36:51.000000000 -0400
++++ xc-new/lib/Xpm/Imakefile 2007-01-09 23:05:27.000000000 -0500
@@ -99,6 +99,7 @@
LinkSourceFile(WrFFrI.c,$(XPMLIBDIR))
LinkSourceFile(CrBufFrP.c,$(XPMLIBDIR))
@@ -206,8 +206,81 @@
LinkSourceFile(CrPFrDat.c,$(XPMLIBDIR))
LinkSourceFile(RdFToP.c,$(XPMLIBDIR))
LinkSourceFile(WrFFrP.c,$(XPMLIBDIR))
+--- xc/lib/font/Type1/afm.c 2004-10-23 11:29:26.000000000 -0400
++++ xc-new/lib/font/Type1/afm.c 2007-01-09 23:05:27.000000000 -0500
+@@ -22,6 +22,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <limits.h>
+ #else
+ #include "Xmd.h" /* For INT32 declaration */
+ #include "Xdefs.h" /* For Bool */
+@@ -111,6 +112,11 @@
+
+ fi->nChars = atoi(p);
+
++ if (fi->nChars < 0 || fi->nChars > INT_MAX / sizeof(Metrics)) {
++ xfree(afmbuf);
++ xfree(fi);
++ return(1);
++ }
+ fi->metrics = (Metrics *)xalloc(fi->nChars *
+ sizeof(Metrics));
+ if (fi->metrics == NULL) {
+--- xc/lib/font/Type1/scanfont.c 2003-11-28 23:55:28.000000000 -0500
++++ xc-new/lib/font/Type1/scanfont.c 2007-01-09 23:05:27.000000000 -0500
+@@ -49,6 +49,7 @@
+
+ #ifndef FONTMODULE
+ #include <string.h>
++#include <limits.h>
+ #else
+ #include "Xdefs.h" /* Bool declaration */
+ #include "Xmd.h" /* INT32 declaration */
+@@ -843,6 +844,8 @@
+ return(SCAN_OK);
+ }
+
++ if (N > INT_MAX / sizeof(psobj))
++ return (SCAN_ERROR);
+ arrayP = (psobj *)vm_alloc(N*sizeof(psobj));
+ if (!(arrayP) ) return(SCAN_OUT_OF_MEMORY);
+ FontP->Subrs.len = N;
+@@ -903,7 +906,7 @@
+ }
+ else return(rc); /* if next token was not an Int */
+ }
+- if (N<=0) return(SCAN_ERROR);
++ if (N<=0 || N > INT_MAX / sizeof(psdict)) return(SCAN_ERROR);
+ /* save number of entries in the dictionary */
+
+ dictP = (psdict *)vm_alloc((N+1)*sizeof(psdict));
+@@ -1711,6 +1714,11 @@
+ if (tokenType == TOKEN_INTEGER)
+ rangecnt = tokenValue.integer;
+
++ if (rangecnt < 0 || rangecnt > INT_MAX / sizeof(spacerangecode)) {
++ rc = SCAN_ERROR;
++ break;
++ }
++
+ /* ==> tokenLength, tokenTooLong, tokenType, and */
+ /* tokenValue are now set */
+
+--- xc/lib/font/Type1/util.c 2001-01-17 14:43:24.000000000 -0500
++++ xc-new/lib/font/Type1/util.c 2007-01-09 23:05:27.000000000 -0500
+@@ -97,7 +97,7 @@
+ bytes = (bytes + 7) & ~7;
+
+ /* Allocate the space, if it is available */
+- if (bytes <= vm_free) {
++ if (bytes > 0 && bytes <= vm_free) {
+ answer = vm_next;
+ vm_free -= bytes;
+ vm_next += bytes;
--- xc/lib/font/bitmap/pcfread.c 2003-11-17 20:17:04.000000000 -0500
-+++ xc-new/lib/font/bitmap/pcfread.c 2006-09-07 11:42:56.000000000 -0400
++++ xc-new/lib/font/bitmap/pcfread.c 2007-01-09 23:05:27.000000000 -0500
@@ -32,6 +32,8 @@
* Author: Keith Packard, MIT X Consortium
*/
@@ -308,8 +381,137 @@
metrics = (CharInfoPtr) xalloc(nmetrics * sizeof(CharInfoRec));
if (!metrics) {
pcfError("pmfReadFont(): Couldn't allocate metrics (%d*%d)\n",
nmetrics, sizeof(CharInfoRec));
+--- xc/programs/Xserver/dbe/dbe.c 2001-10-27 23:33:04.000000000 -0400
++++ xc-new/programs/Xserver/dbe/dbe.c 2007-01-09 23:05:56.000000000 -0500
+@@ -50,6 +50,10 @@
+ #include "xf86_ansic.h"
+ #endif
+
++#if !defined(UINT32_MAX)
++#define UINT32_MAX 0xffffffffU
++#endif
++
+ /* GLOBALS */
+
+ /* Per-screen initialization functions [init'ed by DbeRegisterFunction()] */
+@@ -728,11 +732,14 @@
+ return(Success);
+ }
+
++ if (nStuff > UINT32_MAX / sizeof(DbeSwapInfoRec))
++ return BadAlloc;
++
+ /* Get to the swap info appended to the end of the request. */
+ dbeSwapInfo = (xDbeSwapInfo *)&stuff[1];
+
+ /* Allocate array to record swap information. */
+- swapInfo = (DbeSwapInfoPtr)ALLOCATE_LOCAL(nStuff *
sizeof(DbeSwapInfoRec));
++ swapInfo = (DbeSwapInfoPtr)Xalloc(nStuff * sizeof(DbeSwapInfoRec));
+ if (swapInfo == NULL)
+ {
+ return(BadAlloc);
+@@ -747,14 +754,14 @@
+ if (!(pWin = SecurityLookupWindow(dbeSwapInfo[i].window, client,
+ SecurityWriteAccess)))
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(BadWindow);
+ }
+
+ /* Each window must be double-buffered - BadMatch. */
+ if (DBE_WINDOW_PRIV(pWin) == NULL)
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(BadMatch);
+ }
+
+@@ -763,7 +770,7 @@
+ {
+ if (dbeSwapInfo[i].window == dbeSwapInfo[j].window)
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(BadMatch);
+ }
+ }
+@@ -774,7 +781,7 @@
+ (dbeSwapInfo[i].swapAction != XdbeUntouched ) &&
+ (dbeSwapInfo[i].swapAction != XdbeCopied ))
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(BadValue);
+ }
+
+@@ -804,12 +811,12 @@
+ error = (*pDbeScreenPriv->SwapBuffers)(client, &nStuff, swapInfo);
+ if (error != Success)
+ {
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(error);
+ }
+ }
+
+- DEALLOCATE_LOCAL(swapInfo);
++ Xfree(swapInfo);
+ return(Success);
+
+ } /* ProcDbeSwapBuffers() */
+@@ -893,10 +900,12 @@
+
+ REQUEST_AT_LEAST_SIZE(xDbeGetVisualInfoReq);
+
++ if (stuff->n > UINT32_MAX / sizeof(DrawablePtr))
++ return BadAlloc;
+ /* Make sure any specified drawables are valid. */
+ if (stuff->n != 0)
+ {
+- if (!(pDrawables = (DrawablePtr *)ALLOCATE_LOCAL(stuff->n *
++ if (!(pDrawables = (DrawablePtr *)Xalloc(stuff->n *
+ sizeof(DrawablePtr))))
+ {
+ return(BadAlloc);
+@@ -909,7 +918,7 @@
+ if (!(pDrawables[i] = (DrawablePtr)SecurityLookupDrawable(
+ drawables[i], client, SecurityReadAccess)))
+ {
+- DEALLOCATE_LOCAL(pDrawables);
++ Xfree(pDrawables);
+ return(BadDrawable);
+ }
+ }
+@@ -921,7 +930,7 @@
+ {
+ if (pDrawables)
+ {
+- DEALLOCATE_LOCAL(pDrawables);
++ Xfree(pDrawables);
+ }
+
+ return(BadAlloc);
+@@ -948,7 +957,7 @@
+ /* Free pDrawables if we needed to allocate it above. */
+ if (pDrawables)
+ {
+- DEALLOCATE_LOCAL(pDrawables);
++ Xfree(pDrawables);
+ }
+
+ return(BadAlloc);
+@@ -1029,7 +1038,7 @@
+
+ if (pDrawables)
+ {
+- DEALLOCATE_LOCAL(pDrawables);
++ Xfree(pDrawables);
+ }
+
+ return(client->noClientException);
--- xc/programs/Xserver/dix/events.c 2004-08-04 12:33:34.000000000 -0400
-+++ xc-new/programs/Xserver/dix/events.c 2006-09-07 11:36:51.000000000
-0400
++++ xc-new/programs/Xserver/dix/events.c 2007-01-09 23:05:27.000000000
-0500
@@ -1938,6 +1938,13 @@
*/
&& (!wBoundingShape(pWin) || PointInBorderSize(pWin, x, y))
@@ -325,7 +527,7 @@
{
if (spriteTraceGood >= spriteTraceSize)
--- xc/programs/Xserver/dix/window.c 2003-11-17 17:20:35.000000000 -0500
-+++ xc-new/programs/Xserver/dix/window.c 2006-09-07 11:36:51.000000000
-0400
++++ xc-new/programs/Xserver/dix/window.c 2007-01-09 23:05:27.000000000
-0500
@@ -283,6 +283,9 @@
pWin->srcBuffer = DBE_FRONT_BUFFER;
pWin->dstBuffer = DBE_FRONT_BUFFER;
@@ -345,7 +547,7 @@
/*
* In rootless mode we can't optimize away window restacks.
--- xc/programs/Xserver/fb/fb.h 2004-06-10 13:28:10.000000000 -0400
-+++ xc-new/programs/Xserver/fb/fb.h 2006-09-07 11:36:51.000000000 -0400
++++ xc-new/programs/Xserver/fb/fb.h 2007-01-09 23:05:27.000000000 -0500
@@ -643,6 +643,10 @@
#ifdef __DARWIN__
#define __fbPixOriginX(pPix) ((pPix)->drawable.x)
@@ -358,7 +560,7 @@
#define __fbPixOriginX(pPix) 0
#define __fbPixOriginY(pPix) 0
--- xc/programs/Xserver/fb/fbblt.c 2000-09-27 20:47:22.000000000 -0400
-+++ xc-new/programs/Xserver/fb/fbblt.c 2006-09-07 11:36:51.000000000 -0400
++++ xc-new/programs/Xserver/fb/fbblt.c 2007-01-09 23:05:27.000000000 -0500
@@ -25,6 +25,10 @@
#include "fb.h"
@@ -430,7 +632,7 @@
{
srcLine += ((srcX + width - 1) >> FB_SHIFT) + 1;
--- xc/programs/Xserver/fb/fbpict.c 2004-06-10 13:28:10.000000000 -0400
-+++ xc-new/programs/Xserver/fb/fbpict.c 2006-09-07 11:36:51.000000000
-0400
++++ xc-new/programs/Xserver/fb/fbpict.c 2007-01-09 23:05:27.000000000
-0500
@@ -25,6 +25,10 @@
#include "fb.h"
@@ -474,7 +676,7 @@
{
dst = dstLine;
--- xc/programs/Xserver/fb/fbsolid.c 2001-10-27 23:33:08.000000000 -0400
-+++ xc-new/programs/Xserver/fb/fbsolid.c 2006-09-07 11:36:51.000000000
-0400
++++ xc-new/programs/Xserver/fb/fbsolid.c 2007-01-09 23:05:27.000000000
-0500
@@ -26,6 +26,10 @@
#include "fb.h"
@@ -511,7 +713,7 @@
while (height--)
{
--- xc/programs/Xserver/hw/darwin/darwinKeyboard.c 2004-03-31
19:05:22.000000000 -0500
-+++ xc-new/programs/Xserver/hw/darwin/darwinKeyboard.c 2006-09-07
11:36:51.000000000 -0400
++++ xc-new/programs/Xserver/hw/darwin/darwinKeyboard.c 2007-01-09
23:05:27.000000000 -0500
@@ -64,7 +64,9 @@
/* Define this to use Alt for Mode_switch. */
#define ALT_IS_MODE_SWITCH 1
@@ -524,7 +726,7 @@
#include <stdio.h>
#include <stdlib.h>
--- xc/programs/Xserver/hw/darwin/quartz/applewmExt.h 2003-11-17
17:20:35.000000000 -0500
-+++ xc-new/programs/Xserver/hw/darwin/quartz/applewmExt.h 2006-09-07
11:36:51.000000000 -0400
++++ xc-new/programs/Xserver/hw/darwin/quartz/applewmExt.h 2007-01-09
23:05:27.000000000 -0500
@@ -59,8 +59,6 @@
FrameDrawProc FrameDraw;
} AppleWMProcsRec, *AppleWMProcsPtr;
@@ -535,13 +737,14 @@
AppleWMProcsPtr procsPtr
);
--- xc/programs/Xserver/hw/vfb/InitOutput.c 2005-01-30 12:48:44.000000000
-0500
-+++ xc-new/programs/Xserver/hw/vfb/InitOutput.c 2006-09-07
11:36:51.000000000 -0400
-@@ -83,6 +83,12 @@
++++ xc-new/programs/Xserver/hw/vfb/InitOutput.c 2007-01-09
23:05:27.000000000 -0500
+@@ -83,6 +83,13 @@
/* $XFree86: xc/programs/Xserver/hw/vfb/InitOutput.c,v 3.31 2005/01/30
17:48:44 tsi Exp $ */
+/* jsh: workaround for 3834723 */
+#ifdef HAS_SHM
++#include <sys/types.h>
+#include <sys/ipc.h>
+#include <sys/shm.h>
+#endif /* HAS_SHM */
@@ -550,7 +753,7 @@
#include <X11/Xwinsock.h>
#endif
--- xc/programs/Xserver/hw/xnest/Screen.c 2003-11-16 00:05:20.000000000
-0500
-+++ xc-new/programs/Xserver/hw/xnest/Screen.c 2006-09-07 11:46:58.000000000
-0400
++++ xc-new/programs/Xserver/hw/xnest/Screen.c 2007-01-09 23:05:27.000000000
-0500
@@ -359,6 +359,11 @@
if (!miScreenDevPrivateInit(pScreen, xnestWidth, NULL))
return FALSE;
@@ -564,7 +767,7 @@
#define POSITION_OFFSET (pScreen->myNum * (xnestWidth + xnestHeight) / 32)
--- xc/programs/Xserver/hw/xnest/Window.c 2003-11-16 00:05:20.000000000
-0500
-+++ xc-new/programs/Xserver/hw/xnest/Window.c 2006-09-07 11:46:58.000000000
-0400
++++ xc-new/programs/Xserver/hw/xnest/Window.c 2007-01-09 23:05:27.000000000
-0500
@@ -449,6 +449,13 @@
}
@@ -580,7 +783,7 @@
xnestRegionEqual(RegionPtr pReg1, RegionPtr pReg2)
{
--- xc/programs/Xserver/hw/xnest/XNWindow.h 2003-11-16 00:05:20.000000000
-0500
-+++ xc-new/programs/Xserver/hw/xnest/XNWindow.h 2006-09-07
11:46:58.000000000 -0400
++++ xc-new/programs/Xserver/hw/xnest/XNWindow.h 2007-01-09
23:05:27.000000000 -0500
@@ -73,6 +73,7 @@
void xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn,
RegionPtr other_exposed);
@@ -590,7 +793,7 @@
#endif /* SHAPE */
--- xc/programs/Xserver/include/servermd.h 2004-03-21 06:27:06.000000000
-0500
-+++ xc-new/programs/Xserver/include/servermd.h 2006-09-07 11:36:51.000000000
-0400
++++ xc-new/programs/Xserver/include/servermd.h 2007-01-09 23:05:27.000000000
-0500
@@ -167,7 +167,7 @@
#endif /* hpux */
@@ -601,7 +804,7 @@
#define IMAGE_BYTE_ORDER MSBFirst
#define BITMAP_BIT_ORDER MSBFirst
--- xc/programs/Xserver/include/windowstr.h 2003-04-27 17:31:05.000000000
-0400
-+++ xc-new/programs/Xserver/include/windowstr.h 2006-09-07
11:36:51.000000000 -0400
++++ xc-new/programs/Xserver/include/windowstr.h 2007-01-09
23:05:27.000000000 -0500
@@ -136,6 +136,9 @@
unsigned dstBuffer:1; /* destination buffer for rendering */
unsigned srcBuffer:1; /* source buffer for rendering */
@@ -613,7 +816,7 @@
} WindowRec;
--- xc/programs/Xserver/mi/miinitext.c 2004-06-30 16:21:46.000000000 -0400
-+++ xc-new/programs/Xserver/mi/miinitext.c 2006-09-07 11:45:57.000000000
-0400
++++ xc-new/programs/Xserver/mi/miinitext.c 2007-01-09 23:05:27.000000000
-0500
@@ -310,7 +310,7 @@
#ifdef XSYNC
SyncExtensionInit();
@@ -624,7 +827,7 @@
#endif
#ifdef XCMISC
--- xc/programs/Xserver/mi/miwindow.c 2003-11-10 13:22:49.000000000 -0500
-+++ xc-new/programs/Xserver/mi/miwindow.c 2006-09-07 11:45:57.000000000
-0400
++++ xc-new/programs/Xserver/mi/miwindow.c 2007-01-09 23:05:27.000000000
-0500
@@ -883,7 +883,11 @@
/* and move those bits */
@@ -639,8 +842,53 @@
/* remove any overwritten bits from the remaining useful bits */
--- xc/programs/Xserver/render/render.c 2004-06-30 16:21:46.000000000
-0400
-+++ xc-new/programs/Xserver/render/render.c 2006-09-07 11:45:57.000000000
-0400
-@@ -1300,7 +1300,7 @@
++++ xc-new/programs/Xserver/render/render.c 2007-01-09 23:05:57.000000000
-0500
+@@ -47,6 +47,10 @@
+ #include "xf86_ansic.h"
+ #endif
+
++#if !defined(UINT32_MAX)
++#define UINT32_MAX 0xffffffffU
++#endif
++
+ static int ProcRenderQueryVersion (ClientPtr pClient);
+ static int ProcRenderQueryPictFormats (ClientPtr pClient);
+ static int ProcRenderQueryPictIndexValues (ClientPtr pClient);
+@@ -1069,11 +1073,14 @@
+ }
+
+ nglyphs = stuff->nglyphs;
++ if (nglyphs > UINT32_MAX / sizeof(GlyphNewRec))
++ return BadAlloc;
++
+ if (nglyphs <= NLOCALGLYPH)
+ glyphsBase = glyphsLocal;
+ else
+ {
+- glyphsBase = (GlyphNewPtr) ALLOCATE_LOCAL (nglyphs * sizeof
(GlyphNewRec));
++ glyphsBase = (GlyphNewPtr) Xalloc (nglyphs * sizeof (GlyphNewRec));
+ if (!glyphsBase)
+ return BadAlloc;
+ }
+@@ -1131,7 +1138,7 @@
+ }
+
+ if (glyphsBase != glyphsLocal)
+- DEALLOCATE_LOCAL (glyphsBase);
++ Xfree (glyphsBase);
+ return client->noClientException;
+ bail:
+ while (glyphs != glyphsBase)
+@@ -1140,7 +1147,7 @@
+ xfree (glyphs->glyph);
+ }
+ if (glyphsBase != glyphsLocal)
+- DEALLOCATE_LOCAL (glyphsBase);
++ Xfree (glyphsBase);
+ return err;
+ }
+
+@@ -1300,7 +1307,7 @@
{
if (buffer + sizeof (GlyphSet) < end)
{
@@ -650,7 +898,7 @@
gs,
GlyphSetType,
--- xc/programs/Xserver/xkb/xkbAccessX.c 2003-11-17 17:20:46.000000000
-0500
-+++ xc-new/programs/Xserver/xkb/xkbAccessX.c 2006-09-07 11:46:51.000000000
-0400
++++ xc-new/programs/Xserver/xkb/xkbAccessX.c 2007-01-09 23:05:27.000000000
-0500
@@ -320,7 +320,7 @@
void
AccessXCancelRepeatKey(XkbSrvInfoPtr xkbi,KeyCode key)
@@ -661,7 +909,7 @@
return;
}
--- xc/programs/xterm/main.c 2005-02-06 16:42:38.000000000 -0500
-+++ xc-new/programs/xterm/main.c 2006-09-07 11:36:51.000000000 -0400
++++ xc-new/programs/xterm/main.c 2007-01-09 23:05:27.000000000 -0500
@@ -376,7 +376,7 @@
#include <local/openpty.h>
#endif /* PUCC_PTYD */
Index: tightvnc.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/x11-system/tightvnc.info,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- tightvnc.info 31 Aug 2006 13:33:36 -0000 1.2
+++ tightvnc.info 16 Jan 2007 16:03:31 -0000 1.2.2.1
@@ -3,7 +3,6 @@
Revision: 10
Source: mirror:sourceforge:vnc-tight/tightvnc-%v_unixsrc.tar.gz
SourceDirectory: vnc_unixsrc
-SetCPPFLAGS: -no-cpp-precomp
BuildDepends: libjpeg, x11-dev
Depends: x11, libjpeg-shlibs
PatchScript: sed 's|<PREFIX>|%p|g' < %a/%n.patch | patch -p1
Index: xorg.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/x11-system/xorg.info,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- xorg.info 8 Sep 2006 14:23:43 -0000 1.3
+++ xorg.info 16 Jan 2007 16:03:31 -0000 1.3.2.1
@@ -1,6 +1,6 @@
Package: xorg
Version: 6.8.2
-Revision: 1041
+Revision: 1044
Description: Free X11 implementation
License: BSD
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
@@ -179,12 +179,12 @@
PreInstScript: <<
case "$1" in
install)
- if [ -e /usr/X11R6/lib/libX11.6.dylib ]; then
- echo
+ if [ -r /usr/X11R6/lib/libX11.6.dylib ]; then
+ echo ""
echo "You have an existing X11 installation in
/usr/X11R6/lib."
echo "This package refuses to overwrite these. Remove
them, then tell Fink to"
echo "install xorg-shlibs again. (The package won't be
recompiled.)"
- echo
+ echo ""
echo "Press Return to continue."
read
exit 1
@@ -215,20 +215,21 @@
case "$1" in
install)
- if [ -e /usr/X11R6/bin/xterm -o -e /usr/X11R6/bin/xrdb -o \
- -e /usr/X11R6/lib/libX11.dylib ]; then
- echo
- echo "You have an existing X11 installation in
/usr/X11R6 and/or /etc/X11."
- echo "This package refuses to overwrite these. Remove
them, then tell Fink to"
- echo "install xorg again. (The package won't be
recompiled.) If you want"
- echo "to keep your X11 installation, please see the FAQ
entry at"
- echo
"http://fink.sourceforge.net/faq/usage-packages.php#apple-x11-wants-xfree86"
- echo "for more information on how to configure your
system."
- echo
- echo "Press Return to continue."
- read
- exit 1
- fi
+ for file in /usr/X11R6/bin/xterm /usr/X11R6/lib/libX11.dylib; do
+ if [ -r "$file" ]; then
+ echo ""
+ echo "You have an existing X11 installation in
/usr/X11R6 and/or /etc/X11."
+ echo "This package refuses to overwrite these.
Remove them, then tell Fink to"
+ echo "install xfree86 again. (The package won't
be recompiled.) If you want"
+ echo "to keep your X11 installation, please see
the FAQ entry at"
+ echo
"http://fink.sourceforge.net/faq/usage-packages.php#apple-x11-wants-xfree86"
+ echo "for more information on how to configure
your system."
+ echo ""
+ echo "Press Return to continue."
+ read
+ exit 1
+ fi
+ done
;;
upgrade)
@@ -289,6 +290,7 @@
mv -f /private/etc/fonts/$file.bak
/private/etc/fonts/$file
fi
done
+ rm -rf /usr/X11R6/man/whatis.db
;;
esac
<<
Index: xfree86.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/x11-system/xfree86.info,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- xfree86.info 8 Sep 2006 14:23:43 -0000 1.3
+++ xfree86.info 16 Jan 2007 16:03:31 -0000 1.3.2.1
@@ -1,6 +1,6 @@
Package: xfree86
Version: 4.5.0
-Revision: 1042
+Revision: 1045
Description: Free X11 implementation
License: BSD
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
@@ -186,12 +186,12 @@
PreInstScript: <<
case "$1" in
install)
- if [ -e /usr/X11R6/lib/libX11.6.dylib ]; then
- echo
+ if [ -r /usr/X11R6/lib/libX11.6.dylib ]; then
+ echo ""
echo "You have an existing X11 installation in
/usr/X11R6/lib."
echo "This package refuses to overwrite these. Remove
them, then tell Fink to"
echo "install xfree86-shlibs again. (The package won't
be recompiled.)"
- echo
+ echo ""
echo "Press Return to continue."
read
exit 1
@@ -222,20 +222,21 @@
case "$1" in
install)
- if [ -e /usr/X11R6/bin/xterm -o -e /usr/X11R6/bin/xrdb -o \
- -e /usr/X11R6/libX11.dylib ]; then
- echo
- echo "You have an existing X11 installation in
/usr/X11R6 and/or /etc/X11."
- echo "This package refuses to overwrite these. Remove
them, then tell Fink to"
- echo "install xfree86 again. (The package won't be
recompiled.) If you want"
- echo "to keep your X11 installation, please see the FAQ
entry at"
- echo
"http://fink.sourceforge.net/faq/usage-packages.php#apple-x11-wants-xfree86"
- echo "for more information on how to configure your
system."
- echo
- echo "Press Return to continue."
- read
- exit 1
- fi
+ for file in /usr/X11R6/bin/xterm /usr/X11R6/lib/libX11.dylib; do
+ if [ -r "$file" ]; then
+ echo ""
+ echo "You have an existing X11 installation in
/usr/X11R6 and/or /etc/X11."
+ echo "This package refuses to overwrite these.
Remove them, then tell Fink to"
+ echo "install xfree86 again. (The package won't
be recompiled.) If you want"
+ echo "to keep your X11 installation, please see
the FAQ entry at"
+ echo
"http://fink.sourceforge.net/faq/usage-packages.php#apple-x11-wants-xfree86"
+ echo "for more information on how to configure
your system."
+ echo ""
+ echo "Press Return to continue."
+ read
+ exit 1
+ fi
+ done
;;
upgrade)
@@ -296,6 +297,7 @@
mv -f /private/etc/fonts/$file.bak
/private/etc/fonts/$file
fi
done
+ rm -rf /usr/X11R6/man/whatis.db
;;
esac
<<
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits