Re: [PATCH win-qxl] miniport: fix invalid memory access from previous patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 09, 2012 at 01:46:50PM +0300, Alon Levy wrote:
> On Wed, Aug 08, 2012 at 08:13:29PM +0200, Marc-André Lureau wrote:
> >  miniport/qxl.c |   18 ++++++++++--------
> >  1 file changed, 10 insertions(+), 8 deletions(-)
> > 
> > diff --git a/miniport/qxl.c b/miniport/qxl.c
> > index 44c2a40..003669b 100644
> > --- a/miniport/qxl.c
> > +++ b/miniport/qxl.c
> > @@ -600,6 +600,7 @@ VP_STATUS InitModes(QXLExtension *dev)
> >          return ERROR_INVALID_DATA;
> >      }
> >  
> > +    n_modes += 2;
> 
> So this is basically the fix (allocate the two extra modes) and the rest
> is cleanup.. would be nice to split.

Indeed, I haven't reviewed it since the patch was a bit complex in an area
I'm not familiar with. I probably would have felt comfortable reviewing a
one liner memory corruption fix, and a bigger cleanup patch.

Christophe

Attachment: pgp9tb8OJ514G.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]