summaryrefslogtreecommitdiff
path: root/hw/vfb
diff options
context:
space:
mode:
authorChristopher Yeleighton <giecrilj@stegny.2a.pl>2011-10-24 18:47:06 -0700
committerKeith Packard <keithp@keithp.com>2011-10-24 18:59:56 -0700
commit7d50211ab57a35910d79fc3f67ae89aff91fa995 (patch)
tree62953145df6c91ad1ecfdfdeaba77bdb0305d53c /hw/vfb
parentd9d3a01ffca5e2de650d098231e16205781804c5 (diff)
Bug 38420: Xvfb crashes in miInitVisuals() when started with depth=2
https://bugs.freedesktop.org/show_bug.cgi?id=38420 Exit with fatal error message, not segfault. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/vfb')
-rw-r--r--hw/vfb/InitOutput.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c
index 0e701e518..121854781 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 ();