1 From f09b8007e7f6e60e0b9c9665ec632b578ae08b6f Mon Sep 17 00:00:00 2001
2 From: Matthieu Herrb <matthieu@bluenote.herrb.com>
3 Date: Thu, 17 Jan 2008 15:29:06 +0100
4 Subject: [PATCH] Fix for CVE-2008-0006 - PCF Font parser buffer overflow.
7 dix/dixfonts.c | 7 +++++++
8 1 files changed, 7 insertions(+), 0 deletions(-)
10 diff --git a/dix/dixfonts.c b/dix/dixfonts.c
11 index c21b3ec..7bb2404 100644
14 @@ -325,6 +325,13 @@ doOpenFont(ClientPtr client, OFclosurePtr c)
18 + /* check values for firstCol, lastCol, firstRow, and lastRow */
19 + if (pfont->info.firstCol > pfont->info.lastCol ||
20 + pfont->info.firstRow > pfont->info.lastRow ||
21 + pfont->info.lastCol - pfont->info.firstCol > 255) {