diff options
Diffstat (limited to 'nx-X11')
| -rw-r--r-- | nx-X11/programs/Xserver/randr/rrscreen.c | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/nx-X11/programs/Xserver/randr/rrscreen.c b/nx-X11/programs/Xserver/randr/rrscreen.c index 9b3935e03..9bea97b9f 100644 --- a/nx-X11/programs/Xserver/randr/rrscreen.c +++ b/nx-X11/programs/Xserver/randr/rrscreen.c @@ -938,6 +938,18 @@ ProcRRSetScreenConfig (ClientPtr client)  	width = mode->mode.height;  	height = mode->mode.width;      } + +    if (width < pScrPriv->minWidth || pScrPriv->maxWidth < width) { +	client->errorValue = width; +	free(pData); +	return BadValue; +    } +    if (height < pScrPriv->minHeight || pScrPriv->maxHeight < height) { +	client->errorValue = height; +	free(pData); +	return BadValue; +    } +      if (width != pScreen->width || height != pScreen->height)      {  	int	c; | 
