From 92355314103d2193ca20786915eaf608922a36dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sat, 22 Sep 2007 14:25:02 -0400 Subject: [PATCH] Fix possible crash if Xv window is outside of either crtc --- hw/xfree86/modes/xf86Crtc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index d375da897..2fd56a20c 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -2250,7 +2250,9 @@ xf86_crtc_clip_video_helper(ScrnInfoPtr pScrn, REGION_INIT (pScreen, &crtc_region_local, &crtc_box, 1); crtc_region = &crtc_region_local; REGION_INTERSECT (pScreen, crtc_region, crtc_region, reg); - } + } else + return FALSE; + *crtc_ret = crtc; }