1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Add my patch for buffer overflow in the Render extension's TriFan/TriStrip

requests.

Security:	CVE-2006-1526
Bugzilla:	https://bugs.freedesktop.org/show_bug.cgi?id=6642
This commit is contained in:
Eric Anholt 2006-05-03 08:12:21 +00:00
parent 9200d9071b
commit 27b683e979
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161259
6 changed files with 30 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= xorg-dmx
PORTVERSION= 6.9.0
PORTREVISION= 1
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XORG}
MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src

View File

@ -7,6 +7,7 @@
PORTNAME= xorg-printserver
PORTVERSION= 6.9.0
PORTREVISION= 1
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XORG}
MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src

View File

@ -7,7 +7,7 @@
PORTNAME= xorg-server
PORTVERSION= 6.9.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XORG}
MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src

View File

@ -44,6 +44,7 @@ CF_PATCHES= ${PORTSDIR}/x11-servers/xorg-server/files/patch-FreeBSD.cf \
SERVER_PATCHES= ${PORTSDIR}/x11-servers/xorg-server/files/patch-Xserver-Imakefile \
${PORTSDIR}/x11-servers/xorg-server/files/patch-Xserver-Xext-xvmc.c \
${PORTSDIR}/x11-servers/xorg-server/files/patch-Xserver-os-xprintf.c \
${PORTSDIR}/x11-servers/xorg-server/files/patch-mitri.c \
${PORTSDIR}/x11-servers/xorg-server/files/patch-servermd.h \
${PORTSDIR}/x11-servers/xorg-server/files/patch-xf86sym.c

View File

@ -0,0 +1,25 @@
Index: render/mitri.c
===================================================================
RCS file: /cvs/xorg/xserver/xorg/render/mitri.c,v
retrieving revision 1.5
diff -u -r1.5 mitri.c
--- programs/Xserver/render/mitri.c 3 Jul 2005 07:02:08 -0000 1.5
+++ programs/Xserver/render/mitri.c 18 Apr 2006 22:34:08 -0000
@@ -145,7 +145,7 @@
if (npoint < 3)
return;
ntri = npoint - 2;
- tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
+ tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
if (!tris)
return;
for (tri = tris; npoint >= 3; npoint--, points++, tri++)
@@ -177,7 +177,7 @@
if (npoint < 3)
return;
ntri = npoint - 2;
- tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
+ tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
if (!tris)
return;
first = points++;

View File

@ -7,6 +7,7 @@
PORTNAME= xorg-vfbserver
PORTVERSION= 6.9.0
PORTREVISION= 1
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XORG}
MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src