$NetBSD$ --- programs/Xserver/hw/xfree86/drivers/ati/atimach64xv.c.orig 2005-07-11 02:29:44.000000000 +0000 +++ programs/Xserver/hw/xfree86/drivers/ati/atimach64xv.c @@ -959,6 +959,9 @@ ATIMach64PutImage if (pATI->ActiveSurface) return Success; + if (DstW == 0 || DstH == 0) + return BadValue; + if (!ATIMach64ClipVideo(pScreenInfo, pATI, ImageID, SrcX, SrcY, SrcW, SrcH, DstX, DstY, &DstW, &DstH,