aboutsummaryrefslogtreecommitdiff
path: root/x11/XFree86
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2001-04-26 20:27:20 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2001-04-26 20:27:20 +0000
commitcfe7f69020211ae3b8665390f00c88463777b3c1 (patch)
tree7a35921ab78978c8bc6c9d130e6edbce3e09d163 /x11/XFree86
parentd6bd63c4e40ff3781ca1bbcbf2ccc1d441bc11a4 (diff)
downloadports-cfe7f69020211ae3b8665390f00c88463777b3c1.tar.gz
ports-cfe7f69020211ae3b8665390f00c88463777b3c1.zip
Notes
Diffstat (limited to 'x11/XFree86')
-rw-r--r--x11/XFree86/Makefile2
-rw-r--r--x11/XFree86/files/patch-v88
2 files changed, 89 insertions, 1 deletions
diff --git a/x11/XFree86/Makefile b/x11/XFree86/Makefile
index ca8c38eb0d91..694f9ad8dea1 100644
--- a/x11/XFree86/Makefile
+++ b/x11/XFree86/Makefile
@@ -7,7 +7,7 @@
PORTNAME= XFree86
PORTVERSION= 3.3.6
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= ${PORTVERSION}
diff --git a/x11/XFree86/files/patch-v b/x11/XFree86/files/patch-v
new file mode 100644
index 000000000000..000a64d0a1ee
--- /dev/null
+++ b/x11/XFree86/files/patch-v
@@ -0,0 +1,88 @@
+--- programs/xdm/Chooser.ad 1994/04/27 07:20:01 1.1.1.1
++++ programs/xdm/Chooser.ad 2001/04/06 01:04:41 1.1.1.1.12.1
+@@ -1,3 +1,5 @@
++! $XFree86$
++!
+ *ShapeStyle: Oval
+ *cursor: left_ptr
+ *allowShellResize: true
+@@ -18,7 +20,7 @@
+ <BtnDown>: Set() CheckWilling() \n\
+ <BtnUp>(2): Accept()
+ *list.defaultColumns: 1
+-*list.forceFolumns: true
++*list.forceColumns: true
+
+ *box.skipAdjust: true
+ *cancel.fromHoriz: viewport
+Index: xvidtune.c
+--- programs/xvidtune/xvidtune.c 1998/10/22 19:09:04 3.22.4.1
++++ programs/xvidtune/xvidtune.c 2001/04/06 01:04:41 3.22.4.2
+@@ -545,7 +545,7 @@
+ if (mode_flags & V_INTERLACE) strcat(modebuf, " interlace");
+ if (mode_flags & V_CSYNC) strcat(modebuf, " composite");
+ if (mode_flags & V_PCSYNC) strcat(modebuf, " +csync");
+- if (mode_flags & V_PCSYNC) strcat(modebuf, " -csync");
++ if (mode_flags & V_NCSYNC) strcat(modebuf, " -csync");
+ if (mode_flags & V_DBLSCAN) strcat(modebuf, " doublescan");
+ printf("%s\n", modebuf);
+ time = XtLastTimestampProcessed(XtDisplay(w));
+--- lib/X11/GetProp.c 1994/04/27 07:10:56 1.1.1.1
++++ lib/X11/GetProp.c 2001/04/26 16:23:34 1.1.1.1.12.1
+@@ -76,21 +76,24 @@
+ */
+ case 8:
+ nbytes = netbytes = reply.nItems;
+- if (*prop = (unsigned char *) Xmalloc ((unsigned)nbytes + 1))
++ if (nbytes + 1 > 0 &&
++ (*prop = (unsigned char *) Xmalloc ((unsigned)nbytes + 1)))
+ _XReadPad (dpy, (char *) *prop, netbytes);
+ break;
+
+ case 16:
+ nbytes = reply.nItems * sizeof (short);
+ netbytes = reply.nItems << 1;
+- if (*prop = (unsigned char *) Xmalloc ((unsigned)nbytes + 1))
++ if (nbytes + 1 > 0 &&
++ (*prop = (unsigned char *) Xmalloc ((unsigned)nbytes + 1)))
+ _XRead16Pad (dpy, (short *) *prop, netbytes);
+ break;
+
+ case 32:
+ nbytes = reply.nItems * sizeof (long);
+ netbytes = reply.nItems << 2;
+- if (*prop = (unsigned char *) Xmalloc ((unsigned)nbytes + 1))
++ if (nbytes + 1 > 0 &&
++ (*prop = (unsigned char *) Xmalloc ((unsigned)nbytes + 1)))
+ _XRead32 (dpy, (long *) *prop, netbytes);
+ break;
+
+--- lib/X11/XlibInt.c 2001/02/08 21:11:24 3.9.2.5
++++ lib/X11/XlibInt.c 2001/04/26 16:23:34 3.9.2.6
+@@ -1824,7 +1824,13 @@
+
+ (void) _XSetLastRequestRead(dpy, &rep->generic);
+ len = SIZEOF(xReply) + (rep->generic.length << 2);
+-
++ if (len < SIZEOF(xReply)) {
++ _XIOError (dpy);
++ buf += *lenp;
++ *lenp = 0;
++ return buf;
++ }
++
+ for (async = dpy->async_handlers; async; async = next) {
+ next = async->next;
+ if (consumed = (*async->handler)(dpy, rep, buf, *lenp, async->data))
+--- programs/Xserver/hw/xfree86/CHANGELOG 2001/03/07 17:08:15 3.390.2.337
++++ programs/Xserver/hw/xfree86/CHANGELOG 2001/04/26 16:23:36 3.390.2.339
+@@ -1,4 +1,9 @@
+ XFree86 3.3.6a (xx March 2001)
++1630. [SECURITY] Avoid DoS attacks on xdm (Keith Packard).
++1629. [SECURITY] Check for negative reply length/overflow in _XAsyncReply
++ (Xlib) (#4601, Mike Harris).
++1628. Fix a typo in xvidtune (#A.327, Peter Breitenlohner).
++1627. Fix typo in Chooser.ad (#A.327, Peter Breitenlohner).
+ 1626. Bug fixes and improvements for mouse 3 button emulation state machine
+ (Andrew Pimlott).
+ 1625. Include <time.h> in Xos.h to get struct tm (based on #4464, Mike Harris,