/[gentoo-x86]/x11-base/xorg-server/files/xorg-xserver-1.4-cve-2008-1379.diff
Gentoo

Contents of /x11-base/xorg-server/files/xorg-xserver-1.4-cve-2008-1379.diff

Parent Directory Parent Directory | Revision Log Revision Log


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

1 diff --git a/Xext/shm.c b/Xext/shm.c
2 index ac587be..e08df36 100644
3 --- a/Xext/shm.c
4 +++ b/Xext/shm.c
5 @@ -831,8 +831,17 @@ ProcShmPutImage(client)
6 return BadValue;
7 }
8
9 - VERIFY_SHMSIZE(shmdesc, stuff->offset, length * stuff->totalHeight,
10 - client);
11 + /*
12 + * There's a potential integer overflow in this check:
13 + * VERIFY_SHMSIZE(shmdesc, stuff->offset, length * stuff->totalHeight,
14 + * client);
15 + * the version below ought to avoid it
16 + */
17 + if (stuff->totalHeight != 0 &&
18 + length > (shmdesc->size - stuff->offset)/stuff->totalHeight) {
19 + client->errorValue = stuff->totalWidth;
20 + return BadValue;
21 + }
22 if (stuff->srcX > stuff->totalWidth)
23 {
24 client->errorValue = stuff->srcX;

  ViewVC Help
Powered by ViewVC 1.1.20