On Tue, Sep 29, 2009 at 01:44:24PM -0700, Keith Packard wrote: > 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 <[email protected]> > Date: Tue, 29 Sep 2009 20:31:45 +0200 > Subject: [PATCH] dix: Fix potential memory corruption in doListFontsWithInfo. > > > Signed-off-by: Kim Woelders <[email protected]> > Reviewed-by: Keith Packard <[email protected]> > > --- > 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 > > > -- > [email protected]
Thanks for the patch and review, pushed to master. Cheers, Peter _______________________________________________ xorg-devel mailing list [email protected] http://lists.x.org/mailman/listinfo/xorg-devel
