Excerpts from Kim Woelders's message of Tue Sep 29 11:58:36 -0700 2009:

>From 2da355de4f0c0a9a4ca52b1253afed9486481411 Mon Sep 17 00:00:00 2001
From: Kim Woelders <k...@woelders.dk>
Date: Tue, 29 Sep 2009 20:31:45 +0200
Subject: [PATCH] dix: Fix potential memory corruption in doListFontsWithInfo.


Signed-off-by: Kim Woelders <k...@woelders.dk>
Reviewed-by: Keith Packard <kei...@keithp.com>

---
 dix/dixfonts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dix/dixfonts.c b/dix/dixfonts.c
index d0a46c7..329318d 100644
--- a/dix/dixfonts.c
+++ b/dix/dixfonts.c
@@ -1046,7 +1046,7 @@ doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c)
             err = AllocError;
             break;
         }
-        memset(reply + c->length, 0, length - c->length);
+        memset((char*)reply + c->length, 0, length - c->length);
         c->reply = reply;
         c->length = length;
         }
--
1.6.4.4


-- 
keith.pack...@intel.com

Attachment: signature.asc
Description: PGP signature

_______________________________________________
xorg-devel mailing list
xorg-devel@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to