On Sat, Apr  3, 2010 at 17:13:27 -0300, Fernando Carrijo wrote:

> > diff --git a/hw/vfb/InitInput.c b/hw/vfb/InitInput.c
> > index 35d1dc4..3136e93 100644
> > --- a/hw/vfb/InitInput.c
> > +++ b/hw/vfb/InitInput.c
> > @@ -139,7 +139,9 @@ InitInput(int argc, char *argv[])
> >      p = AddInputDevice(serverClient, vfbMouseProc, TRUE);
> >      k = AddInputDevice(serverClient, vfbKeybdProc, TRUE);
> >      RegisterPointerDevice(p);
> > +    p->name = strdup("mouse");
> 
> Under shortage of memory, strdup() will return a NULL pointer.
> 
If we're OOM at InitInput time we'll probably have other issues.  But
yeah, I can make that xnfstrdup() so we'll FatalError instead.

Thanks,
Julien

Attachment: signature.asc
Description: Digital signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to