[PATCH] dix: Fix potential memory corruption in doListFontsWithInfo.
Kim Woelders
kim at woelders.dk
Tue Sep 29 11:31:45 PDT 2009
Signed-off-by: Kim Woelders <kim at woelders.dk>
---
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
------------uBr8RdsfxsgdXKYKuFbOEn--
More information about the xorg-devel
mailing list