EXA: Fix crash with fill using 1x1 tile of depth < 8 (bug #24703).

Matthieu Herrb matthieu.herrb at laas.fr
Mon Jan 31 12:40:54 PST 2011


Please include this in 1.9.4 if possible

commit e06fa804009798ea95efa8babaabb0228dfdfe65

See https://bugs.freedesktop.org/show_bug.cgi?id=24703

On Wed, Dec 22, 2010 at 11:04:10AM +0100, Michel Dänzer wrote:
> From: Michel Dänzer <daenzer at vmware.com>
> 
> Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24703 .
> 
> Signed-off-by: Michel Dänzer <daenzer at vmware.com>
> ---
>  exa/exa_accel.c   |    2 ++
>  exa/exa_unaccel.c |    2 ++
>  2 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/exa/exa_accel.c b/exa/exa_accel.c
> index 6c677c7..b4c0f83 100644
> --- a/exa/exa_accel.c
> +++ b/exa/exa_accel.c
> @@ -1057,6 +1057,8 @@ exaFillRegionSolid (DrawablePtr	pDrawable, RegionPtr pRegion, Pixel pixel,
>  		*(CARD16*)pExaPixmap->sys_ptr = pixel;
>  		break;
>  	    case 8:
> +	    case 4:
> +	    case 1:
>  		*(CARD8*)pExaPixmap->sys_ptr = pixel;
>  	    }
>  
> diff --git a/exa/exa_unaccel.c b/exa/exa_unaccel.c
> index a078cc1..d3c405f 100644
> --- a/exa/exa_unaccel.c
> +++ b/exa/exa_unaccel.c
> @@ -748,6 +748,8 @@ exaGetPixmapFirstPixel (PixmapPtr pPixmap)
>  	    return pixel;
>  	}
>      case 8:
> +    case 4:
> +    case 1:
>  	{
>  	    CARD8 pixel;
>  
> -- 
> 1.7.2.3
> 
> _______________________________________________
> 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

-- 
Matthieu Herrb


More information about the xorg-devel mailing list