[PATCH] Bug 38420: Xvfb crashes in miInitVisuals() when started with depth=2

Jeremy Huddleston jeremyhu at apple.com
Tue Oct 11 01:01:39 PDT 2011


Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>

On Sep 23, 2011, at 20:42, Alan Coopersmith wrote:

> From: Christopher Yeleighton <giecrilj at stegny.2a.pl>
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=38420
> 
> Exit with fatal error message, not segfault.
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
> hw/vfb/InitOutput.c |    2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c
> index 0e701e5..1218547 100644
> --- a/hw/vfb/InitOutput.c
> +++ b/hw/vfb/InitOutput.c
> @@ -863,6 +863,8 @@ vfbScreenInit(int index, ScreenPtr pScreen, int argc, char **argv)
> 				   (1 << DirectColor)),
> 				  10, TrueColor, 0x3ff00000, 0x000ffc00, 0x000003ff);
> 	break;
> +    default:
> +	return FALSE;
>     }
> 
>     miSetPixmapDepths ();
> -- 
> 1.7.3.2
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list